diff options
author | osado <osado@yandex-team.ru> | 2022-02-10 16:49:18 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:18 +0300 |
commit | 3ed175181ceac225ee14e4519492ad2967a7bd73 (patch) | |
tree | a1a8375fb33669212c8d4f3eb2e50f4f719b6533 /util/generic | |
parent | 883d905c560ebed4b7f38d021b424d75c4521a6f (diff) | |
download | ydb-3ed175181ceac225ee14e4519492ad2967a7bd73.tar.gz |
Restoring authorship annotation for <osado@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic')
-rw-r--r-- | util/generic/deque.h | 2 | ||||
-rw-r--r-- | util/generic/fwd.h | 44 | ||||
-rw-r--r-- | util/generic/hash.h | 4 | ||||
-rw-r--r-- | util/generic/hash_set.h | 2 | ||||
-rw-r--r-- | util/generic/list.h | 2 | ||||
-rw-r--r-- | util/generic/map.h | 4 | ||||
-rw-r--r-- | util/generic/set.h | 2 | ||||
-rw-r--r-- | util/generic/vector.h | 2 |
8 files changed, 31 insertions, 31 deletions
diff --git a/util/generic/deque.h b/util/generic/deque.h index 2dabaf3177..f08370c2dc 100644 --- a/util/generic/deque.h +++ b/util/generic/deque.h @@ -1,6 +1,6 @@ #pragma once -#include "fwd.h" +#include "fwd.h" #include <util/memory/alloc.h> diff --git a/util/generic/fwd.h b/util/generic/fwd.h index 5cc2da40e5..58d0d2e7fe 100644 --- a/util/generic/fwd.h +++ b/util/generic/fwd.h @@ -51,49 +51,49 @@ class TAvlTree; template <class TValue, class TCmp> class TRbTree; -//containers -template <class T, class A = std::allocator<T>> +//containers +template <class T, class A = std::allocator<T>> class TVector; -template <class T, class A = std::allocator<T>> +template <class T, class A = std::allocator<T>> class TDeque; - + template <class T, class S = TDeque<T>> class TQueue; - + template <class T, class S = TVector<T>, class C = TLess<T>> class TPriorityQueue; - + template <class Key, class T, class HashFcn = THash<Key>, class EqualKey = TEqualTo<Key>, class Alloc = std::allocator<Key>> class THashMap; - + template <class Key, class T, class HashFcn = THash<Key>, class EqualKey = TEqualTo<Key>, class Alloc = std::allocator<Key>> class THashMultiMap; - -template <class Value, class HashFcn = THash<Value>, class EqualKey = TEqualTo<Value>, class Alloc = std::allocator<Value>> + +template <class Value, class HashFcn = THash<Value>, class EqualKey = TEqualTo<Value>, class Alloc = std::allocator<Value>> class THashSet; -template <class Value, class HashFcn = THash<Value>, class EqualKey = TEqualTo<Value>, class Alloc = std::allocator<Value>> +template <class Value, class HashFcn = THash<Value>, class EqualKey = TEqualTo<Value>, class Alloc = std::allocator<Value>> class THashMultiSet; - -template <class T, class A = std::allocator<T>> + +template <class T, class A = std::allocator<T>> class TList; - -template <class K, class V, class Less = TLess<K>, class A = std::allocator<K>> + +template <class K, class V, class Less = TLess<K>, class A = std::allocator<K>> class TMap; - -template <class K, class V, class Less = TLess<K>, class A = std::allocator<K>> + +template <class K, class V, class Less = TLess<K>, class A = std::allocator<K>> class TMultiMap; - -template <class K, class L = TLess<K>, class A = std::allocator<K>> + +template <class K, class L = TLess<K>, class A = std::allocator<K>> class TSet; - -template <class K, class L = TLess<K>, class A = std::allocator<K>> + +template <class K, class L = TLess<K>, class A = std::allocator<K>> class TMultiSet; - + template <class T, class S = TDeque<T>> class TStack; - + template <size_t BitCount, typename TChunkType = ui64> class TBitMap; diff --git a/util/generic/hash.h b/util/generic/hash.h index e46db21fa9..4e5d4dff43 100644 --- a/util/generic/hash.h +++ b/util/generic/hash.h @@ -448,7 +448,7 @@ struct _yhashtable_traits { extern const void* const _yhashtable_empty_data[]; -template <class Value, class Key, class HashFcn, class ExtractKey, class EqualKey, class Alloc> +template <class Value, class Key, class HashFcn, class ExtractKey, class EqualKey, class Alloc> class THashTable: private _yhashtable_traits<Value, Key, HashFcn, ExtractKey, EqualKey, Alloc>::base_type { using traits_type = _yhashtable_traits<Value, Key, HashFcn, ExtractKey, EqualKey, Alloc>; using base_type = typename traits_type::base_type; @@ -1421,7 +1421,7 @@ namespace NPrivate { [[noreturn]] void ThrowKeyNotFoundInHashTableException(const TStringBuf keyRepresentation); } -template <class Key, class T, class HashFcn, class EqualKey, class Alloc> +template <class Key, class T, class HashFcn, class EqualKey, class Alloc> class THashMap: public TMapOps<THashMap<Key, T, HashFcn, EqualKey, Alloc>> { private: using ht = THashTable<std::pair<const Key, T>, Key, HashFcn, TSelect1st, EqualKey, Alloc>; diff --git a/util/generic/hash_set.h b/util/generic/hash_set.h index e8088cf23b..c80c1059fc 100644 --- a/util/generic/hash_set.h +++ b/util/generic/hash_set.h @@ -8,7 +8,7 @@ #undef value_type -template <class Value, class HashFcn, class EqualKey, class Alloc> +template <class Value, class HashFcn, class EqualKey, class Alloc> class THashSet { private: using ht = THashTable<Value, Value, HashFcn, ::TIdentity, EqualKey, Alloc>; diff --git a/util/generic/list.h b/util/generic/list.h index 7b0b8ffc72..e42a2e9f44 100644 --- a/util/generic/list.h +++ b/util/generic/list.h @@ -9,7 +9,7 @@ #include <memory> #include <utility> -template <class T, class A> +template <class T, class A> class TList: public std::list<T, TReboundAllocator<A, T>> { using TBase = std::list<T, TReboundAllocator<A, T>>; diff --git a/util/generic/map.h b/util/generic/map.h index b5001b56c0..2d9ccdc5e4 100644 --- a/util/generic/map.h +++ b/util/generic/map.h @@ -11,7 +11,7 @@ #include <map> #include <memory> -template <class K, class V, class Less, class A> +template <class K, class V, class Less, class A> class TMap: public std::map<K, V, Less, TReboundAllocator<A, std::pair<const K, V>>>, public TMapOps<TMap<K, V, Less, A>> { using TBase = std::map<K, V, Less, TReboundAllocator<A, std::pair<const K, V>>>; @@ -27,7 +27,7 @@ public: } }; -template <class K, class V, class Less, class A> +template <class K, class V, class Less, class A> class TMultiMap: public std::multimap<K, V, Less, TReboundAllocator<A, std::pair<const K, V>>> { using TBase = std::multimap<K, V, Less, TReboundAllocator<A, std::pair<const K, V>>>; diff --git a/util/generic/set.h b/util/generic/set.h index 4c437ca26f..63b6f34cc4 100644 --- a/util/generic/set.h +++ b/util/generic/set.h @@ -9,7 +9,7 @@ #include <memory> #include <set> -template <class K, class L, class A> +template <class K, class L, class A> class TSet: public std::set<K, L, TReboundAllocator<A, K>> { public: using TBase = std::set<K, L, TReboundAllocator<A, K>>; diff --git a/util/generic/vector.h b/util/generic/vector.h index a5b258955a..32da677ed6 100644 --- a/util/generic/vector.h +++ b/util/generic/vector.h @@ -8,7 +8,7 @@ #include <vector> #include <initializer_list> -template <class T, class A> +template <class T, class A> class TVector: public std::vector<T, TReboundAllocator<A, T>> { public: using TBase = std::vector<T, TReboundAllocator<A, T>>; |