aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/containers/sorted_vector
diff options
context:
space:
mode:
authormihaild <mihaild@yandex-team.ru>2022-02-10 16:46:59 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:59 +0300
commit55fa8c7df8dba9a6fda8a807e529a9d04bd88580 (patch)
treeb83306b6e37edeea782e9eed673d89286c4fef35 /library/cpp/containers/sorted_vector
parent246417ad6168d3f7ab4a0cf1c79ba4259f7c45ae (diff)
downloadydb-55fa8c7df8dba9a6fda8a807e529a9d04bd88580.tar.gz
Restoring authorship annotation for <mihaild@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/containers/sorted_vector')
-rw-r--r--library/cpp/containers/sorted_vector/sorted_vector.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/containers/sorted_vector/sorted_vector.h b/library/cpp/containers/sorted_vector/sorted_vector.h
index 93110940c1..123539af9e 100644
--- a/library/cpp/containers/sorted_vector/sorted_vector.h
+++ b/library/cpp/containers/sorted_vector/sorted_vector.h
@@ -6,7 +6,7 @@
#include <util/generic/algorithm.h>
#include <util/generic/mapfindptr.h>
#include <util/ysaveload.h>
-#include <utility>
+#include <utility>
#include <initializer_list>
@@ -127,12 +127,12 @@ namespace NSorted {
// if the value with the same key doesn't exist. Returns <iterator, bool> pair,
// where the first member is the pointer to the inserted/existing value, and the
// second member indicates either the value is inserted or not.
- inline std::pair<iterator, bool> InsertUnique(const value_type& value) {
+ inline std::pair<iterator, bool> InsertUnique(const value_type& value) {
iterator i = LowerBound(TKeyExtractor()(value));
if (i == TBase::end() || !TValueEqual()(*i, value))
- return std::pair<iterator, bool>(TBase::insert(i, value), true);
+ return std::pair<iterator, bool>(TBase::insert(i, value), true);
else
- return std::pair<iterator, bool>(i, false);
+ return std::pair<iterator, bool>(i, false);
}
// STL-compatible synonym
@@ -305,7 +305,7 @@ namespace NSorted {
template<class K>
inline void Erase(const K& key) {
- std::pair<iterator, iterator> res = EqualRange(key);
+ std::pair<iterator, iterator> res = EqualRange(key);
TBase::erase(res.first, res.second);
}
@@ -316,7 +316,7 @@ namespace NSorted {
template<class K>
inline size_t count(const K& key) const {
- const std::pair<const_iterator, const_iterator> range = this->EqualRange(key);
+ const std::pair<const_iterator, const_iterator> range = this->EqualRange(key);
return std::distance(range.first, range.second);
}
@@ -333,7 +333,7 @@ namespace NSorted {
public TMapOps<TSimpleMap<TKeyType, TValueType, TPredicate, A>>
{
private:
- typedef TSortedVector<std::pair<TKeyType, TValueType>, TKeyType, TSelect1st, TPredicate, A> TBase;
+ typedef TSortedVector<std::pair<TKeyType, TValueType>, TKeyType, TSelect1st, TPredicate, A> TBase;
public:
typedef typename TBase::value_type value_type;