diff options
author | ionagamed <ionagamed@yandex-team.com> | 2024-03-12 20:44:55 +0300 |
---|---|---|
committer | ionagamed <ionagamed@yandex-team.com> | 2024-03-12 21:07:31 +0300 |
commit | aeb060ae2865e6846f3faa065d5aa3bc21e534d3 (patch) | |
tree | cd6477e186a3e13eb85ae36774536f7f4a7de53b | |
parent | 1337adc7441330a6b558d5c93c513f73d75e8af3 (diff) | |
download | ydb-aeb060ae2865e6846f3faa065d5aa3bc21e534d3.tar.gz |
update CPP_STYLE_TEST_14 to CPP_STYLE_TEST_16: ^util
f25fb42bc8bd1b7423721fa3a0f85ef2bb8f8d97
-rw-r--r-- | util/generic/explicit_type_ut.cpp | 4 | ||||
-rw-r--r-- | util/generic/typetraits.h | 9 | ||||
-rw-r--r-- | util/ysaveload.h | 2 |
3 files changed, 8 insertions, 7 deletions
diff --git a/util/generic/explicit_type_ut.cpp b/util/generic/explicit_type_ut.cpp index 50a745f090..0d443b3589 100644 --- a/util/generic/explicit_type_ut.cpp +++ b/util/generic/explicit_type_ut.cpp @@ -5,7 +5,9 @@ struct TCallableBase { public: using TYes = char; - using TNo = struct { TYes dummy[32]; }; + using TNo = struct { + TYes dummy[32]; + }; template <class T, class Arg> static TNo Test(const T&, const Arg&, ...); diff --git a/util/generic/typetraits.h b/util/generic/typetraits.h index b877f4ef99..09aebcbad7 100644 --- a/util/generic/typetraits.h +++ b/util/generic/typetraits.h @@ -321,11 +321,10 @@ namespace NPrivate { using std::end; template <typename T> - auto IsIterableImpl(int) -> decltype( - begin(std::declval<T&>()) != end(std::declval<T&>()), // begin/end and operator != - ++std::declval<decltype(begin(std::declval<T&>()))&>(), // operator ++ - *begin(std::declval<T&>()), // operator* - std::true_type{}); + auto IsIterableImpl(int) -> decltype(begin(std::declval<T&>()) != end(std::declval<T&>()), // begin/end and operator != + ++std::declval<decltype(begin(std::declval<T&>()))&>(), // operator ++ + *begin(std::declval<T&>()), // operator* + std::true_type{}); template <typename T> std::false_type IsIterableImpl(...); diff --git a/util/ysaveload.h b/util/ysaveload.h index 52fd5bd8ef..155720bdf5 100644 --- a/util/ysaveload.h +++ b/util/ysaveload.h @@ -698,7 +698,7 @@ struct TSerializer<std::variant<Args...>> { private: template <size_t... Is> static void LoadImpl(IInputStream* is, TVar& v, ui8 index, std::index_sequence<Is...>) { - using TLoader = void (*)(IInputStream*, TVar & v); + using TLoader = void (*)(IInputStream*, TVar& v); constexpr TLoader loaders[] = {::NPrivate::LoadVariantAlternative<TVar, Args, Is>...}; loaders[index](is, v); } |