diff options
author | snusmumrik <snusmumrik@yandex-team.ru> | 2022-02-10 16:50:37 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:37 +0300 |
commit | 82866fec9f72e622e937a34f2acc7f087e336cbb (patch) | |
tree | 165cd57cff3293a4f3f1489051df55cc632ce347 /library | |
parent | f5adc48f207b2a0e660881efd443f304cc1536ff (diff) | |
download | ydb-82866fec9f72e622e937a34f2acc7f087e336cbb.tar.gz |
Restoring authorship annotation for <snusmumrik@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library')
-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 123539af9e..81143e9eae 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); |