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 | 863a59a65247c24db7cb06789bc5cf79d04da32f (patch) | |
tree | 139dc000c8cd4a40f5659e421b7c75135d080307 /library/cpp/containers/stack_array/stack_array.h | |
parent | f64e95a9eb9ab03240599eb9581c5a9102426a96 (diff) | |
download | ydb-863a59a65247c24db7cb06789bc5cf79d04da32f.tar.gz |
Restoring authorship annotation for Alexander Fokin <apfokin@gmail.com>. Commit 1 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 28e49bfc3c..d5c8bab8d0 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> { |