summaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/compact_containers/compact_flat_map-inl.h
diff options
context:
space:
mode:
authordgolear <[email protected]>2025-07-10 22:33:21 +0300
committerdgolear <[email protected]>2025-07-10 22:56:45 +0300
commit5f7c8cead6f7a3f7bea3f01cb168eb1f7a926879 (patch)
tree96517df0eaef6d7553ad127257902f0ff0707e4a /library/cpp/yt/compact_containers/compact_flat_map-inl.h
parent612146bc655489da23249308c666ca9eb2ef6509 (diff)
YT: Allow serializing TCompactSet
commit_hash:733610a293a0c3a2656dbef77630d359c16d3bdf
Diffstat (limited to 'library/cpp/yt/compact_containers/compact_flat_map-inl.h')
-rw-r--r--library/cpp/yt/compact_containers/compact_flat_map-inl.h18
1 files changed, 3 insertions, 15 deletions
diff --git a/library/cpp/yt/compact_containers/compact_flat_map-inl.h b/library/cpp/yt/compact_containers/compact_flat_map-inl.h
index e781569d9da..7bc52cbb1bb 100644
--- a/library/cpp/yt/compact_containers/compact_flat_map-inl.h
+++ b/library/cpp/yt/compact_containers/compact_flat_map-inl.h
@@ -21,18 +21,6 @@ TCompactFlatMap<TKey, TValue, N, TKeyCompare>::TCompactFlatMap(std::initializer_
{ }
template <class TKey, class TValue, size_t N, class TKeyCompare>
-bool TCompactFlatMap<TKey, TValue, N, TKeyCompare>::operator==(const TCompactFlatMap& rhs) const
-{
- return Storage_ == rhs.Storage_;
-}
-
-template <class TKey, class TValue, size_t N, class TKeyCompare>
-bool TCompactFlatMap<TKey, TValue, N, TKeyCompare>::operator!=(const TCompactFlatMap& rhs) const
-{
- return !(*this == rhs);
-}
-
-template <class TKey, class TValue, size_t N, class TKeyCompare>
typename TCompactFlatMap<TKey, TValue, N, TKeyCompare>::iterator TCompactFlatMap<TKey, TValue, N, TKeyCompare>::begin()
{
return Storage_.begin();
@@ -130,18 +118,18 @@ bool TCompactFlatMap<TKey, TValue, N, TKeyCompare>::contains(const TOtherKey& k)
template <class TKey, class TValue, size_t N, class TKeyCompare>
auto TCompactFlatMap<TKey, TValue, N, TKeyCompare>::insert(const value_type& value) -> std::pair<iterator, bool>
{
- return do_insert(value);
+ return DoInsert(value);
}
template <class TKey, class TValue, size_t N, class TKeyCompare>
auto TCompactFlatMap<TKey, TValue, N, TKeyCompare>::insert(value_type&& value) -> std::pair<iterator, bool>
{
- return do_insert(std::move(value));
+ return DoInsert(std::move(value));
}
template <class TKey, class TValue, size_t N, class TKeyCompare>
template <class TArg>
-auto TCompactFlatMap<TKey, TValue, N, TKeyCompare>::do_insert(TArg&& value) -> std::pair<iterator, bool>
+auto TCompactFlatMap<TKey, TValue, N, TKeyCompare>::DoInsert(TArg&& value) -> std::pair<iterator, bool>
{
auto [rangeBegin, rangeEnd] = equal_range(value.first);
if (rangeBegin != rangeEnd) {