diff options
author | bulatman <bulatman@yandex-team.ru> | 2022-02-10 16:45:50 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:50 +0300 |
commit | 6560e4993b14d193f8c879e33a3de5e5eba6e21d (patch) | |
tree | cfd2e2baa05c3196f2caacbb63c32e1df40bc3de /util/generic/typetraits.h | |
parent | 7489e4682331202b9c7d863c0898eb83d7b12c2b (diff) | |
download | ydb-6560e4993b14d193f8c879e33a3de5e5eba6e21d.tar.gz |
Restoring authorship annotation for <bulatman@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/typetraits.h')
-rw-r--r-- | util/generic/typetraits.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util/generic/typetraits.h b/util/generic/typetraits.h index d165bd1a06..d4156c709e 100644 --- a/util/generic/typetraits.h +++ b/util/generic/typetraits.h @@ -282,7 +282,7 @@ struct TIsSpecializationOf<T, T<Ts...>>: std::true_type {}; */ template <typename... T> constexpr bool TDependentFalse = false; - + // FIXME: neither nvcc10 nor nvcc11 support using auto in this context #if defined(__NVCC__) template <size_t Value> @@ -292,14 +292,14 @@ template <auto... Values> constexpr bool TValueDependentFalse = false; #endif -/* - * shortcut for std::enable_if_t<...> which checks that T is std::tuple or std::pair - */ -template <class T, class R = void> -using TEnableIfTuple = std::enable_if_t<::TDisjunction<::TIsSpecializationOf<std::tuple, std::decay_t<T>>, +/* + * shortcut for std::enable_if_t<...> which checks that T is std::tuple or std::pair + */ +template <class T, class R = void> +using TEnableIfTuple = std::enable_if_t<::TDisjunction<::TIsSpecializationOf<std::tuple, std::decay_t<T>>, ::TIsSpecializationOf<std::pair, std::decay_t<T>>>::value, R>; - + namespace NPrivate { // To allow ADL with custom begin/end using std::begin; |