aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/deprecated/accessors/accessors.h
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:17 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:17 +0300
commitd3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch)
treedd4bd3ca0f36b817e96812825ffaf10d645803f2 /library/cpp/deprecated/accessors/accessors.h
parent72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff)
downloadydb-d3a398281c6fd1d3672036cb2d63f842d2cb28c5.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/deprecated/accessors/accessors.h')
-rw-r--r--library/cpp/deprecated/accessors/accessors.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/library/cpp/deprecated/accessors/accessors.h b/library/cpp/deprecated/accessors/accessors.h
index 8ad5f56a34..6d4b1da3ad 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);
+ }
}