diff options
author | snusmumrik <snusmumrik@yandex-team.ru> | 2022-02-10 16:50:38 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:38 +0300 |
commit | 1717072c6635948128dad7b015a0ec05acbe913b (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp | |
parent | 82866fec9f72e622e937a34f2acc7f087e336cbb (diff) | |
download | ydb-1717072c6635948128dad7b015a0ec05acbe913b.tar.gz |
Restoring authorship annotation for <snusmumrik@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/containers/sorted_vector/sorted_vector.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/library/cpp/containers/sorted_vector/sorted_vector.h b/library/cpp/containers/sorted_vector/sorted_vector.h index 81143e9eae..123539af9e 100644 --- a/library/cpp/containers/sorted_vector/sorted_vector.h +++ b/library/cpp/containers/sorted_vector/sorted_vector.h @@ -355,12 +355,12 @@ namespace NSorted { TBase::MakeUnique(); } - inline TSimpleMap(std::initializer_list<value_type> il) - : TBase(il) - { - TBase::MakeUnique(); - } - + inline TSimpleMap(std::initializer_list<value_type> il) + : TBase(il) + { + TBase::MakeUnique(); + } + inline TValueType& Get(const TKeyType& key) { typename TBase::iterator i = TBase::LowerBound(key); if (i == TBase::end() || key != i->first) @@ -427,12 +427,12 @@ namespace NSorted { TBase::MakeUnique(); } - inline TSimpleSet(std::initializer_list<value_type> il) - : TBase(il) - { - TBase::MakeUnique(); - } - + inline TSimpleSet(std::initializer_list<value_type> il) + : TBase(il) + { + TBase::MakeUnique(); + } + // The method expects that there is a TValueType(TKeyType) constructor available inline TValueType& Get(const TKeyType& key) { typename TBase::iterator i = TBase::LowerBound(key); |