diff options
author | Alexander Fokin <apfokin@gmail.com> | 2022-02-10 16:45:38 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:38 +0300 |
commit | bf9e69a933f89af083d895185f01ed65e4d90766 (patch) | |
tree | b2cc84ee7850122e7ccf51d0ea21e4fa7e7a5685 /library/cpp/containers/stack_array/stack_array.h | |
parent | 863a59a65247c24db7cb06789bc5cf79d04da32f (diff) | |
download | ydb-bf9e69a933f89af083d895185f01ed65e4d90766.tar.gz |
Restoring authorship annotation for Alexander Fokin <apfokin@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/containers/stack_array/stack_array.h')
-rw-r--r-- | library/cpp/containers/stack_array/stack_array.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/library/cpp/containers/stack_array/stack_array.h b/library/cpp/containers/stack_array/stack_array.h index d5c8bab8d0..28e49bfc3c 100644 --- a/library/cpp/containers/stack_array/stack_array.h +++ b/library/cpp/containers/stack_array/stack_array.h @@ -6,21 +6,21 @@ #include <util/system/defaults.h> /* For alloca. */ namespace NStackArray { - /** + /** * A stack-allocated array. Should be used instead of � variable length - * arrays that are not part of C++ standard. - * - * Example usage: - * @code - * void f(int size) { - * // T array[size]; // Wrong! - * TStackArray<T> array(ALLOC_ON_STACK(T, size)); // Right! - * // ... - * } - * @endcode - * - * Note that it is generally a *VERY BAD* idea to use this in inline methods - * as those might be called from a loop, and then stack overflow is in the cards. + * arrays that are not part of C++ standard. + * + * Example usage: + * @code + * void f(int size) { + * // T array[size]; // Wrong! + * TStackArray<T> array(ALLOC_ON_STACK(T, size)); // Right! + * // ... + * } + * @endcode + * + * Note that it is generally a *VERY BAD* idea to use this in inline methods + * as those might be called from a loop, and then stack overflow is in the cards. */ template <class T> class TStackArray: public TArrayRef<T> { |