aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/deprecated/accessors/accessors.h
diff options
context:
space:
mode:
authordobrokot <dobrokot@yandex-team.ru>2022-02-10 16:49:07 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:07 +0300
commit8d57b69dee81198a59c39e64704f7dc9f04b4fbf (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/deprecated/accessors/accessors.h
parent25d83bf841d8b3ce3886525078f1964ac3c293c5 (diff)
downloadydb-8d57b69dee81198a59c39e64704f7dc9f04b4fbf.tar.gz
Restoring authorship annotation for <dobrokot@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/deprecated/accessors/accessors.h')
-rw-r--r--library/cpp/deprecated/accessors/accessors.h74
1 files changed, 37 insertions, 37 deletions
diff --git a/library/cpp/deprecated/accessors/accessors.h b/library/cpp/deprecated/accessors/accessors.h
index ab7c0cfb83..6d4b1da3ad 100644
--- a/library/cpp/deprecated/accessors/accessors.h
+++ b/library/cpp/deprecated/accessors/accessors.h
@@ -37,44 +37,44 @@ namespace NAccessors {
inline size_t Size(const T& t) {
return End(t) - Begin(t);
}
-
- /**
- * This gives some unification in terms of memory manipulation.
- */
-
+
+ /**
+ * This gives some unification in terms of memory manipulation.
+ */
+
+ template <typename T>
+ inline void Reserve(T& t, size_t sz) {
+ NPrivate::TReserve<T>::Do(t, sz);
+ }
+
+ template <typename T>
+ inline void Resize(T& t, size_t sz) {
+ NPrivate::TResize<T>::Do(t, sz);
+ }
+
+ template <typename T>
+ inline void Clear(T& t) {
+ NPrivate::TClear<T, false>::Do(t);
+ }
+
+ template <typename T>
+ inline void Init(T& t) {
+ NPrivate::TClear<T, true>::Do(t);
+ }
+
+ template <typename T>
+ inline void Append(T& t, const typename TMemoryTraits<T>::TElementType& v) {
+ NPrivate::TAppend<T>::Do(t, v);
+ }
+
+ template <typename T>
+ inline void Append(T& t,
+ const typename TMemoryTraits<T>::TElementType* beg,
+ const typename TMemoryTraits<T>::TElementType* end) {
+ NPrivate::TAppendRegion<T>::Do(t, beg, end);
+ }
+
template <typename T>
- inline void Reserve(T& t, size_t sz) {
- NPrivate::TReserve<T>::Do(t, sz);
- }
-
- template <typename T>
- inline void Resize(T& t, size_t sz) {
- NPrivate::TResize<T>::Do(t, sz);
- }
-
- template <typename T>
- inline void Clear(T& t) {
- NPrivate::TClear<T, false>::Do(t);
- }
-
- template <typename T>
- inline void Init(T& t) {
- NPrivate::TClear<T, true>::Do(t);
- }
-
- template <typename T>
- inline void Append(T& t, const typename TMemoryTraits<T>::TElementType& v) {
- NPrivate::TAppend<T>::Do(t, v);
- }
-
- template <typename T>
- inline void Append(T& t,
- const typename TMemoryTraits<T>::TElementType* beg,
- const typename TMemoryTraits<T>::TElementType* end) {
- NPrivate::TAppendRegion<T>::Do(t, beg, end);
- }
-
- template <typename T>
inline void Assign(T& t,
const typename TMemoryTraits<T>::TElementType* beg,
const typename TMemoryTraits<T>::TElementType* end) {