aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2023-04-07 00:13:09 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2023-04-07 00:13:09 +0300
commitb3c11e8eea7183b6bca2907a30e6de04c1c5938e (patch)
tree809fbddf303fbbff448a58f71eda00ebe4e24139
parent042837d631ba8e9b65e4e1ba864b8efbbbaf073b (diff)
downloadydb-b3c11e8eea7183b6bca2907a30e6de04c1c5938e.tar.gz
Intermediate changes
-rw-r--r--library/cpp/yt/small_containers/compact_flat_map-inl.h5
-rw-r--r--library/cpp/yt/small_containers/compact_flat_map.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/library/cpp/yt/small_containers/compact_flat_map-inl.h b/library/cpp/yt/small_containers/compact_flat_map-inl.h
index 740a7c2df9..459d72fa2c 100644
--- a/library/cpp/yt/small_containers/compact_flat_map-inl.h
+++ b/library/cpp/yt/small_containers/compact_flat_map-inl.h
@@ -16,6 +16,11 @@ TCompactFlatMap<K, V, N>::TCompactFlatMap(TInputIterator begin, TInputIterator e
}
template <class K, class V, size_t N>
+TCompactFlatMap<K, V, N>::TCompactFlatMap(std::initializer_list<value_type> values)
+ : TCompactFlatMap<K, V, N>(values.begin(), values.end())
+{ }
+
+template <class K, class V, size_t N>
bool TCompactFlatMap<K, V, N>::operator==(const TCompactFlatMap& rhs) const
{
return Storage_ == rhs.Storage_;
diff --git a/library/cpp/yt/small_containers/compact_flat_map.h b/library/cpp/yt/small_containers/compact_flat_map.h
index afb229c06d..b598a34731 100644
--- a/library/cpp/yt/small_containers/compact_flat_map.h
+++ b/library/cpp/yt/small_containers/compact_flat_map.h
@@ -57,6 +57,8 @@ public:
template <class TInputIterator>
TCompactFlatMap(TInputIterator begin, TInputIterator end);
+ TCompactFlatMap(std::initializer_list<value_type> values);
+
bool operator==(const TCompactFlatMap& rhs) const;
bool operator!=(const TCompactFlatMap& rhs) const;