aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/vector.h
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.ru>2022-02-10 16:45:12 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:12 +0300
commit49116032d905455a7b1c994e4a696afc885c1e71 (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /util/generic/vector.h
parent4e839db24a3bbc9f1c610c43d6faaaa99824dcca (diff)
downloadydb-49116032d905455a7b1c994e4a696afc885c1e71.tar.gz
Restoring authorship annotation for <thegeorg@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/vector.h')
-rw-r--r--util/generic/vector.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/util/generic/vector.h b/util/generic/vector.h
index bc3020e3c2..a5b258955a 100644
--- a/util/generic/vector.h
+++ b/util/generic/vector.h
@@ -110,20 +110,20 @@ public:
return (yssize_t)TBase::size();
}
-#ifdef _YNDX_LIBCXX_ENABLE_VECTOR_POD_RESIZE_UNINITIALIZED
- void yresize(size_type newSize) {
- if (std::is_pod<T>::value) {
- TBase::resize_uninitialized(newSize);
- } else {
- TBase::resize(newSize);
- }
- }
-#else
- void yresize(size_type newSize) {
- TBase::resize(newSize);
- }
-#endif
-
+#ifdef _YNDX_LIBCXX_ENABLE_VECTOR_POD_RESIZE_UNINITIALIZED
+ void yresize(size_type newSize) {
+ if (std::is_pod<T>::value) {
+ TBase::resize_uninitialized(newSize);
+ } else {
+ TBase::resize(newSize);
+ }
+ }
+#else
+ void yresize(size_type newSize) {
+ TBase::resize(newSize);
+ }
+#endif
+
inline void crop(size_type size) {
if (this->size() > size) {
this->erase(this->begin() + size, this->end());