diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2023-02-14 16:40:58 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2023-02-14 16:40:58 +0300 |
commit | 76dc940cbab459dfeccf6a8138b2cd99d713a5ec (patch) | |
tree | 4506b11e7fb30b84c5637865e910f166e2e410d1 /library/cpp/yt/small_containers/compact_flat_map-inl.h | |
parent | 11b72c5b82735d8c975d1a077877123ca4989589 (diff) | |
download | ydb-76dc940cbab459dfeccf6a8138b2cd99d713a5ec.tar.gz |
Intermediate changes
Diffstat (limited to 'library/cpp/yt/small_containers/compact_flat_map-inl.h')
-rw-r--r-- | library/cpp/yt/small_containers/compact_flat_map-inl.h | 24 |
1 files changed, 24 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 74557f2467..740a7c2df9 100644 --- a/library/cpp/yt/small_containers/compact_flat_map-inl.h +++ b/library/cpp/yt/small_containers/compact_flat_map-inl.h @@ -210,6 +210,30 @@ TCompactFlatMap<K, V, N>::equal_range(const K& k) const return result; } +template <class K, class V, size_t N> +typename TCompactFlatMap<K, V, N>::const_iterator TCompactFlatMap<K, V, N>::lower_bound(const K& k) const +{ + return std::lower_bound(Storage_.begin(), Storage_.end(), k, TKeyComparer()); +} + +template <class K, class V, size_t N> +typename TCompactFlatMap<K, V, N>::iterator TCompactFlatMap<K, V, N>::lower_bound(const K& k) +{ + return std::lower_bound(Storage_.begin(), Storage_.end(), k, TKeyComparer()); +} + +template <class K, class V, size_t N> +typename TCompactFlatMap<K, V, N>::const_iterator TCompactFlatMap<K, V, N>::upper_bound(const K& k) const +{ + return std::upper_bound(Storage_.begin(), Storage_.end(), k, TKeyComparer()); +} + +template <class K, class V, size_t N> +typename TCompactFlatMap<K, V, N>::iterator TCompactFlatMap<K, V, N>::upper_bound(const K& k) +{ + return std::upper_bound(Storage_.begin(), Storage_.end(), k, TKeyComparer()); +} + //////////////////////////////////////////////////////////////////////////////// } // namespace NYT |