diff options
Diffstat (limited to 'library/cpp/yson/node/node.h')
-rw-r--r-- | library/cpp/yson/node/node.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/yson/node/node.h b/library/cpp/yson/node/node.h index 5f90f95df0..63229b5934 100644 --- a/library/cpp/yson/node/node.h +++ b/library/cpp/yson/node/node.h @@ -131,9 +131,9 @@ public: template<typename T> bool IsOfType() const noexcept; - // Int64, Uint64, Double, or Bool - bool IsArithmetic() const; - + // Int64, Uint64, Double, or Bool + bool IsArithmetic() const; + bool Empty() const; size_t Size() const; @@ -290,10 +290,10 @@ bool operator!=(const TNode& lhs, const TNode& rhs); bool GetBool(const TNode& node); -inline bool TNode::IsArithmetic() const { - return IsInt64() || IsUint64() || IsDouble() || IsBool(); -} - +inline bool TNode::IsArithmetic() const { + return IsInt64() || IsUint64() || IsDouble() || IsBool(); +} + template<typename T> inline T TNode::IntCast() const { if constexpr (std::is_integral<T>::value) { |