diff options
author | tender-bum <tender-bum@yandex-team.ru> | 2022-02-10 16:50:01 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:01 +0300 |
commit | c78b06a63de7beec995c1007bc5332bdf3d75b69 (patch) | |
tree | 729de992758f40b85278d4abaad655be5dd68dbc /util/generic/typetraits_ut.cpp | |
parent | 95ab23a39b5482a434361566cabdd5b0a433cb43 (diff) | |
download | ydb-c78b06a63de7beec995c1007bc5332bdf3d75b69.tar.gz |
Restoring authorship annotation for <tender-bum@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/typetraits_ut.cpp')
-rw-r--r-- | util/generic/typetraits_ut.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/util/generic/typetraits_ut.cpp b/util/generic/typetraits_ut.cpp index e7571c75ec..24b7febc6f 100644 --- a/util/generic/typetraits_ut.cpp +++ b/util/generic/typetraits_ut.cpp @@ -2,9 +2,9 @@ #include <library/cpp/testing/unittest/registar.h> -#include <vector> -#include <tuple> - +#include <vector> +#include <tuple> + namespace { enum ETestEnum { }; @@ -450,12 +450,12 @@ static_assert(std::is_same<i8, TFixedWidthSignedInt<ui8>>::value, ""); static_assert(std::is_same<i16, TFixedWidthSignedInt<ui16>>::value, ""); static_assert(std::is_same<i32, TFixedWidthSignedInt<ui32>>::value, ""); static_assert(std::is_same<i64, TFixedWidthSignedInt<ui64>>::value, ""); - -// test for TIsSpecializationOf -static_assert(TIsSpecializationOf<std::vector, std::vector<int>>::value, ""); -static_assert(TIsSpecializationOf<std::tuple, std::tuple<int, double, char>>::value, ""); -static_assert(!TIsSpecializationOf<std::vector, std::tuple<int, double, char>>::value, ""); -static_assert(!TIsSpecializationOf<std::pair, std::vector<int>>::value, ""); + +// test for TIsSpecializationOf +static_assert(TIsSpecializationOf<std::vector, std::vector<int>>::value, ""); +static_assert(TIsSpecializationOf<std::tuple, std::tuple<int, double, char>>::value, ""); +static_assert(!TIsSpecializationOf<std::vector, std::tuple<int, double, char>>::value, ""); +static_assert(!TIsSpecializationOf<std::pair, std::vector<int>>::value, ""); // test for TIsIterable static_assert(TIsIterable<std::vector<int>>::value, ""); |