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 | 2e6009493e74f88988b81f219b301f450331648d (patch) | |
tree | 49e222ea1c5804306084bb3ae065bb702625360f /library/cpp/yson/node/node.h | |
parent | fbf86a4ded9dc8c023e9ce96018c8f495f2e5212 (diff) | |
download | ydb-2e6009493e74f88988b81f219b301f450331648d.tar.gz |
Restoring authorship annotation for <leasid@yandex-team.ru>. Commit 2 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 2fead29923..5f90f95df0 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_); } //////////////////////////////////////////////////////////////////////////////// |