From f4728f8501a5abea4a3c6ae79a0413065100e6fa Mon Sep 17 00:00:00 2001 From: Anatoly Kalin Date: Tue, 5 Sep 2023 18:24:57 +0300 Subject: [PATCH] [EN-7412] Implement DXFeedConnect sample --- include/dxfeed_graal_cpp_api/internal/utils/TimeFormat.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/dxfeed_graal_cpp_api/internal/utils/TimeFormat.hpp b/include/dxfeed_graal_cpp_api/internal/utils/TimeFormat.hpp index 2f41a1d8..dee1b9c4 100644 --- a/include/dxfeed_graal_cpp_api/internal/utils/TimeFormat.hpp +++ b/include/dxfeed_graal_cpp_api/internal/utils/TimeFormat.hpp @@ -40,10 +40,14 @@ struct DXFCPP_EXPORT TimeFormat { data_[index] = entry; } - void add(const Entry::KeyType &key, const Entry::ValueType &value) { + void add(const typename Entry::KeyType &key, const typename Entry::ValueType &value) { add({key, value}); } + void clear() noexcept { + data_.swap({maxSize, Entry::STUB}); + } + template const Entry &get(const Key &key) const noexcept { auto index = static_cast(key) % maxSize;