aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/containers/stack_array
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:23 +0300
commit706b83ed7de5a473436620367af31fc0ceecde07 (patch)
tree103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/containers/stack_array
parent918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff)
downloadydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/containers/stack_array')
-rw-r--r--library/cpp/containers/stack_array/range_ops.h8
-rw-r--r--library/cpp/containers/stack_array/stack_array.h6
2 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/containers/stack_array/range_ops.h b/library/cpp/containers/stack_array/range_ops.h
index 1d40341aa1..7b61b15758 100644
--- a/library/cpp/containers/stack_array/range_ops.h
+++ b/library/cpp/containers/stack_array/range_ops.h
@@ -7,7 +7,7 @@
namespace NRangeOps {
template <class T, bool isTrivial>
struct TRangeOpsBase {
- static inline void DestroyRange(T* b, T* e) noexcept {
+ static inline void DestroyRange(T* b, T* e) noexcept {
while (e > b) {
(--e)->~T();
}
@@ -30,10 +30,10 @@ namespace NRangeOps {
template <class T>
struct TRangeOpsBase<T, true> {
- static inline void DestroyRange(T*, T*) noexcept {
+ static inline void DestroyRange(T*, T*) noexcept {
}
- static inline void InitializeRange(T*, T*) noexcept {
+ static inline void InitializeRange(T*, T*) noexcept {
}
};
@@ -41,7 +41,7 @@ namespace NRangeOps {
using TRangeOps = TRangeOpsBase<T, TTypeTraits<T>::IsPod>;
template <class T>
- static inline void DestroyRange(T* b, T* e) noexcept {
+ static inline void DestroyRange(T* b, T* e) noexcept {
TRangeOps<T>::DestroyRange(b, e);
}
diff --git a/library/cpp/containers/stack_array/stack_array.h b/library/cpp/containers/stack_array/stack_array.h
index 28e49bfc3c..9f097da72c 100644
--- a/library/cpp/containers/stack_array/stack_array.h
+++ b/library/cpp/containers/stack_array/stack_array.h
@@ -2,12 +2,12 @@
#include "range_ops.h"
-#include <util/generic/array_ref.h>
+#include <util/generic/array_ref.h>
#include <util/system/defaults.h> /* For alloca. */
namespace NStackArray {
/**
- * A stack-allocated array. Should be used instead of � variable length
+ * A stack-allocated array. Should be used instead of � variable length
* arrays that are not part of C++ standard.
*
* Example usage:
@@ -31,7 +31,7 @@ namespace NStackArray {
NRangeOps::InitializeRange(this->begin(), this->end());
}
- inline ~TStackArray() {
+ inline ~TStackArray() {
NRangeOps::DestroyRange(this->begin(), this->end());
}
};