diff options
author | shakurov <shakurov@yandex-team.ru> | 2022-02-10 16:49:23 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:23 +0300 |
commit | 296627beeba9eb1fbc3cc1ff3dbae3ff192fb2a8 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/yt/misc/cast.h | |
parent | 6750fac04a33847862ab7bfb19145f6f91207be6 (diff) | |
download | ydb-296627beeba9eb1fbc3cc1ff3dbae3ff192fb2a8.tar.gz |
Restoring authorship annotation for <shakurov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/yt/misc/cast.h')
-rw-r--r-- | library/cpp/yt/misc/cast.h | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/library/cpp/yt/misc/cast.h b/library/cpp/yt/misc/cast.h index 1a043907b6..c7565c9e6d 100644 --- a/library/cpp/yt/misc/cast.h +++ b/library/cpp/yt/misc/cast.h @@ -1,29 +1,29 @@ -#pragma once - +#pragma once + #include <library/cpp/yt/exception/exception.h> -namespace NYT { - -//////////////////////////////////////////////////////////////////////////////// - -template <class T, class S> -bool TryIntegralCast(S value, T* result); - -template <class T, class S> -T CheckedIntegralCast(S value); - +namespace NYT { + +//////////////////////////////////////////////////////////////////////////////// + +template <class T, class S> +bool TryIntegralCast(S value, T* result); + +template <class T, class S> +T CheckedIntegralCast(S value); + //////////////////////////////////////////////////////////////////////////////// -template <class T, class S> +template <class T, class S> bool TryEnumCast(S value, T* result); - -template <class T, class S> -T CheckedEnumCast(S value); - -//////////////////////////////////////////////////////////////////////////////// - -} // namespace NYT - -#define CAST_INL_H_ -#include "cast-inl.h" -#undef CAST_INL_H_ + +template <class T, class S> +T CheckedEnumCast(S value); + +//////////////////////////////////////////////////////////////////////////////// + +} // namespace NYT + +#define CAST_INL_H_ +#include "cast-inl.h" +#undef CAST_INL_H_ |