diff options
author | danlark <danlark@yandex-team.ru> | 2022-02-10 16:46:10 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:10 +0300 |
commit | baa58daefa91fde4b4769facdbd2903763b9c6a8 (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/generic/function.h | |
parent | 3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (diff) | |
download | ydb-baa58daefa91fde4b4769facdbd2903763b9c6a8.tar.gz |
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/function.h')
-rw-r--r-- | util/generic/function.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/util/generic/function.h b/util/generic/function.h index aa7bf8aa133..62fa84e0cb3 100644 --- a/util/generic/function.h +++ b/util/generic/function.h @@ -21,26 +21,26 @@ namespace NPrivate { typedef R TSignature(Args...); }; - template <class T> - struct TRemoveNoExceptImpl { - using Type = T; - }; - - template <typename R, typename... Args> - struct TRemoveNoExceptImpl<R(Args...) noexcept> { - using Type = R(Args...); - }; - - template <typename R, typename C, typename... Args> - struct TRemoveNoExceptImpl<R (C::*)(Args...) noexcept> { - using Type = R (C::*)(Args...); - }; - - template <class T> - using TRemoveNoExcept = typename TRemoveNoExceptImpl<T>::Type; - + template <class T> + struct TRemoveNoExceptImpl { + using Type = T; + }; + + template <typename R, typename... Args> + struct TRemoveNoExceptImpl<R(Args...) noexcept> { + using Type = R(Args...); + }; + + template <typename R, typename C, typename... Args> + struct TRemoveNoExceptImpl<R (C::*)(Args...) noexcept> { + using Type = R (C::*)(Args...); + }; + + template <class T> + using TRemoveNoExcept = typename TRemoveNoExceptImpl<T>::Type; + template <class F> - using TRemoveClass = typename TRemoveClassImpl<TRemoveNoExcept<F>>::TSignature; + using TRemoveClass = typename TRemoveClassImpl<TRemoveNoExcept<F>>::TSignature; template <class C> struct TFuncInfo { |