diff options
author | danlark <danlark@yandex-team.ru> | 2022-02-10 16:46:08 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:08 +0300 |
commit | 3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (patch) | |
tree | 26154e1e9990f1bb4525d3e3fb5b6dac2c2c1da2 /library/cpp/blockcodecs/core/codecs.h | |
parent | cb68f224c46a8ee52ac3fdd2a32534b8bb8dc134 (diff) | |
download | ydb-3426a9bc7f169ae9da54cef557ad2a33f6e8eee0.tar.gz |
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/blockcodecs/core/codecs.h')
-rw-r--r-- | library/cpp/blockcodecs/core/codecs.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/library/cpp/blockcodecs/core/codecs.h b/library/cpp/blockcodecs/core/codecs.h index 9c93c00274..d6606775e2 100644 --- a/library/cpp/blockcodecs/core/codecs.h +++ b/library/cpp/blockcodecs/core/codecs.h @@ -3,26 +3,26 @@ #include <util/generic/buffer.h> #include <util/generic/strbuf.h> #include <util/generic/string.h> -#include <util/generic/typetraits.h> +#include <util/generic/typetraits.h> #include <util/generic/vector.h> #include <util/generic/yexception.h> namespace NBlockCodecs { struct TData: public TStringBuf { - inline TData() = default; - - Y_HAS_MEMBER(Data); - Y_HAS_MEMBER(Size); - - template <class T, std::enable_if_t<!THasSize<T>::value || !THasData<T>::value, int> = 0> - inline TData(const T& t) - : TStringBuf((const char*)t.data(), t.size()) - { + inline TData() = default; + + Y_HAS_MEMBER(Data); + Y_HAS_MEMBER(Size); + + template <class T, std::enable_if_t<!THasSize<T>::value || !THasData<T>::value, int> = 0> + inline TData(const T& t) + : TStringBuf((const char*)t.data(), t.size()) + { } - template <class T, std::enable_if_t<THasSize<T>::value && THasData<T>::value, int> = 0> + template <class T, std::enable_if_t<THasSize<T>::value && THasData<T>::value, int> = 0> inline TData(const T& t) - : TStringBuf((const char*)t.Data(), t.Size()) + : TStringBuf((const char*)t.Data(), t.Size()) { } }; |