diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:15 +0300 |
commit | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch) | |
tree | da2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /library/cpp/deprecated/accessors/accessors.h | |
parent | 778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff) | |
download | ydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/deprecated/accessors/accessors.h')
-rw-r--r-- | library/cpp/deprecated/accessors/accessors.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/library/cpp/deprecated/accessors/accessors.h b/library/cpp/deprecated/accessors/accessors.h index 6d4b1da3ad..8ad5f56a34 100644 --- a/library/cpp/deprecated/accessors/accessors.h +++ b/library/cpp/deprecated/accessors/accessors.h @@ -3,7 +3,7 @@ #include "accessors_impl.h" namespace NAccessors { - /* + /* * Adds API compatibility between different types representing memory regions. * * i.e. this will work: @@ -23,26 +23,26 @@ namespace NAccessors { * Both will give you begin, end and size of the underlying memory region. */ - template <typename T> - inline const typename TMemoryTraits<T>::TElementType* Begin(const T& t) { - return NPrivate::TBegin<T>::Get(t); - } + template <typename T> + inline const typename TMemoryTraits<T>::TElementType* Begin(const T& t) { + return NPrivate::TBegin<T>::Get(t); + } - template <typename T> - inline const typename TMemoryTraits<T>::TElementType* End(const T& t) { - return NPrivate::TEnd<T>::Get(t); - } + template <typename T> + inline const typename TMemoryTraits<T>::TElementType* End(const T& t) { + return NPrivate::TEnd<T>::Get(t); + } - template <typename T> - inline size_t Size(const T& t) { - return End(t) - Begin(t); - } + template <typename T> + inline size_t Size(const T& t) { + return End(t) - Begin(t); + } /** * This gives some unification in terms of memory manipulation. */ - template <typename T> + template <typename T> inline void Reserve(T& t, size_t sz) { NPrivate::TReserve<T>::Do(t, sz); } @@ -75,9 +75,9 @@ namespace NAccessors { } template <typename T> - inline void Assign(T& t, - const typename TMemoryTraits<T>::TElementType* beg, - const typename TMemoryTraits<T>::TElementType* end) { - NPrivate::TAssign<T>::Do(t, beg, end); - } + inline void Assign(T& t, + const typename TMemoryTraits<T>::TElementType* beg, + const typename TMemoryTraits<T>::TElementType* end) { + NPrivate::TAssign<T>::Do(t, beg, end); + } } |