aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/containers/sorted_vector
diff options
context:
space:
mode:
authorAlexander Fokin <apfokin@gmail.com>2022-02-10 16:45:38 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:38 +0300
commitbf9e69a933f89af083d895185f01ed65e4d90766 (patch)
treeb2cc84ee7850122e7ccf51d0ea21e4fa7e7a5685 /library/cpp/containers/sorted_vector
parent863a59a65247c24db7cb06789bc5cf79d04da32f (diff)
downloadydb-bf9e69a933f89af083d895185f01ed65e4d90766.tar.gz
Restoring authorship annotation for Alexander Fokin <apfokin@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/containers/sorted_vector')
-rw-r--r--library/cpp/containers/sorted_vector/sorted_vector.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/cpp/containers/sorted_vector/sorted_vector.h b/library/cpp/containers/sorted_vector/sorted_vector.h
index 53e0786a8e..123539af9e 100644
--- a/library/cpp/containers/sorted_vector/sorted_vector.h
+++ b/library/cpp/containers/sorted_vector/sorted_vector.h
@@ -49,7 +49,7 @@ namespace NSorted {
// Sorted vector, which is order by the key. The key is extracted from the value by the provided key-extractor
template <typename TValueType, typename TKeyType = TValueType, class TKeyExtractor = TIdentity,
- class TPredicate = TLess<TKeyType>, class A = std::allocator<TValueType>>
+ class TPredicate = TLess<TKeyType>, class A = std::allocator<TValueType>>
class TSortedVector: public TVector<TValueType, A> {
private:
typedef TVector<TValueType, A> TBase;
@@ -327,7 +327,7 @@ namespace NSorted {
// This structure has the side-effect: if you keep a reference to an existing element
// and then inserts a new one, the existing reference can be broken (due to reallocation).
// Please keep this in mind when using this structure.
- template <typename TKeyType, typename TValueType, class TPredicate = TLess<TKeyType>, class A = std::allocator<TValueType>>
+ template <typename TKeyType, typename TValueType, class TPredicate = TLess<TKeyType>, class A = std::allocator<TValueType>>
class TSimpleMap:
public TSortedVector<std::pair<TKeyType, TValueType>, TKeyType, TSelect1st, TPredicate, A>,
public TMapOps<TSimpleMap<TKeyType, TValueType, TPredicate, A>>
@@ -401,7 +401,7 @@ namespace NSorted {
// This structure has the same side-effect as TSimpleMap.
// The value type must have TValueType(TKeyType) constructor in order to use [] operator
template <typename TValueType, typename TKeyType = TValueType, class TKeyExtractor = TIdentity,
- class TPredicate = TLess<TKeyType>, class A = std::allocator<TValueType>>
+ class TPredicate = TLess<TKeyType>, class A = std::allocator<TValueType>>
class TSimpleSet: public TSortedVector<TValueType, TKeyType, TKeyExtractor, TPredicate, A> {
private:
typedef TSortedVector<TValueType, TKeyType, TKeyExtractor, TPredicate, A> TBase;