diff options
author | Andrey Khalyavin <halyavin@gmail.com> | 2022-02-10 16:46:30 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:30 +0300 |
commit | 4b839d0704ee9be1dabb0310a1f03af24963637b (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/packers | |
parent | f773626848a7c7456803654292e716b83d69cc12 (diff) | |
download | ydb-4b839d0704ee9be1dabb0310a1f03af24963637b.tar.gz |
Restoring authorship annotation for Andrey Khalyavin <halyavin@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/packers')
-rw-r--r-- | library/cpp/packers/packers.h | 16 | ||||
-rw-r--r-- | library/cpp/packers/ut/packers_ut.cpp | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/packers/packers.h b/library/cpp/packers/packers.h index 96043548dd..1bde1b59aa 100644 --- a/library/cpp/packers/packers.h +++ b/library/cpp/packers/packers.h @@ -6,8 +6,8 @@ #include <util/generic/list.h> #include <util/generic/vector.h> #include <util/generic/bitops.h> - -#include <array> + +#include <array> // Data serialization strategy class. // Default realization can pack only limited range of types, but you can pack any data other using your own strategy class. @@ -87,8 +87,8 @@ namespace NPackers { template <class T> inline ui64 ConvertIntegral(const T& data) { - static_assert(std::is_integral<T>::value, "T must be integral type"); - return NImpl::TConvertImpl<T, std::is_signed<T>::value>::Convert(data); + static_assert(std::is_integral<T>::value, "T must be integral type"); + return NImpl::TConvertImpl<T, std::is_signed<T>::value>::Convert(data); } //--------------------------------- @@ -178,7 +178,7 @@ namespace NPackers { template <class T> inline void TIntegralPacker<T>::UnpackLeaf(const char* p, T& t) const { - NImpl::TUnpackLeafImpl<T, std::is_signed<T>::value>().UnpackLeaf(p, t); + NImpl::TUnpackLeafImpl<T, std::is_signed<T>::value>().UnpackLeaf(p, t); } template <class T> @@ -487,17 +487,17 @@ namespace NPackers { } //------------------------------------------------------------------------------------------ - // Packer for fixed-size arrays, i.e. for std::array. + // Packer for fixed-size arrays, i.e. for std::array. // Saves memory by not storing anything about their size. // SkipLeaf skips every value, so can be slow for big arrays. - // Requires std::tuple_size<TValue>, TValue::operator[] and possibly TValue::value_type. + // Requires std::tuple_size<TValue>, TValue::operator[] and possibly TValue::value_type. template <class TValue, class TElementPacker = TPacker<typename TValue::value_type>> class TArrayPacker { public: using TElemPacker = TElementPacker; enum { - Size = std::tuple_size<TValue>::value + Size = std::tuple_size<TValue>::value }; void UnpackLeaf(const char* p, TValue& t) const { diff --git a/library/cpp/packers/ut/packers_ut.cpp b/library/cpp/packers/ut/packers_ut.cpp index 0364d2327f..18ce2150d1 100644 --- a/library/cpp/packers/ut/packers_ut.cpp +++ b/library/cpp/packers/ut/packers_ut.cpp @@ -19,7 +19,7 @@ #include "packers.h" -#include <array> +#include <array> #include <iterator> class TPackersTest: public TTestBase { |