diff options
author | savrus <savrus@yandex-team.ru> | 2022-02-10 16:50:48 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:48 +0300 |
commit | 2056f5ae3bf6e5a65e9885e0add085c708cca5b8 (patch) | |
tree | 253bee3c01d51bffda855b0fb547d9b755f669b0 /library/cpp/yt/small_containers/compact_flat_map.h | |
parent | 445df920f2d83b93084aba764d98163d25598cda (diff) | |
download | ydb-2056f5ae3bf6e5a65e9885e0add085c708cca5b8.tar.gz |
Restoring authorship annotation for <savrus@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/yt/small_containers/compact_flat_map.h')
-rw-r--r-- | library/cpp/yt/small_containers/compact_flat_map.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/yt/small_containers/compact_flat_map.h b/library/cpp/yt/small_containers/compact_flat_map.h index 13bdc0e9da..4e0999b934 100644 --- a/library/cpp/yt/small_containers/compact_flat_map.h +++ b/library/cpp/yt/small_containers/compact_flat_map.h @@ -28,8 +28,8 @@ public: // NB: can't make this pair<const K, V> as TCompactVector requires its type // parameter to be copy-assignable. using value_type = std::pair<K, V>; - using key_type = K; - using mapped_type = V; + using key_type = K; + using mapped_type = V; private: using TStorage = TCompactVector<value_type, N>; @@ -84,9 +84,9 @@ public: template <class TInputIterator> void insert(TInputIterator begin, TInputIterator end); - template <class... TArgs> - std::pair<iterator, bool> emplace(TArgs&&... args); - + template <class... TArgs> + std::pair<iterator, bool> emplace(TArgs&&... args); + V& operator[](const K& k); void erase(const K& k); |