diff options
author | leasid <leasid@yandex-team.ru> | 2022-02-10 16:46:51 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:51 +0300 |
commit | fbf86a4ded9dc8c023e9ce96018c8f495f2e5212 (patch) | |
tree | 73395cdacbe691b551f6b56badcfb6ef9a1503c3 /library/cpp/yson/node/node.h | |
parent | 084b81523e9afa5566bcfec6ebfc4290f204b4e7 (diff) | |
download | ydb-fbf86a4ded9dc8c023e9ce96018c8f495f2e5212.tar.gz |
Restoring authorship annotation for <leasid@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/yson/node/node.h')
-rw-r--r-- | library/cpp/yson/node/node.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/yson/node/node.h b/library/cpp/yson/node/node.h index 5f90f95df07..2fead29923d 100644 --- a/library/cpp/yson/node/node.h +++ b/library/cpp/yson/node/node.h @@ -10,7 +10,7 @@ #include <util/string/cast.h> #include <cmath> -#include <variant> +#include <variant> class IInputStream; class IOutputStream; @@ -57,7 +57,7 @@ private: bool operator==(const TUndefined&) const; }; - using TValue = std::variant< + using TValue = std::variant< bool, i64, ui64, @@ -495,17 +495,17 @@ inline T& TNode::ChildAs(size_t index) { template<typename T> inline bool TNode::IsOfType() const noexcept { - return std::holds_alternative<T>(Value_); + return std::holds_alternative<T>(Value_); } template<typename T> inline T& TNode::As() { - return std::get<T>(Value_); + return std::get<T>(Value_); } template<typename T> inline const T& TNode::As() const { - return std::get<T>(Value_); + return std::get<T>(Value_); } //////////////////////////////////////////////////////////////////////////////// |