aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorizetag <izetag@yandex-team.ru>2022-02-10 16:49:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:23 +0300
commit4413723d359117d4e6287d7ba94ee9b4102fa149 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8
parent15e99bf7f1c1f5abf1fb12dbe305396757929832 (diff)
downloadydb-4413723d359117d4e6287d7ba94ee9b4102fa149.tar.gz
Restoring authorship annotation for <izetag@yandex-team.ru>. Commit 2 of 2.
-rw-r--r--library/cpp/archive/models_archive_reader.h2
-rw-r--r--library/cpp/yson/node/node.h42
-rw-r--r--util/network/socket.h16
3 files changed, 30 insertions, 30 deletions
diff --git a/library/cpp/archive/models_archive_reader.h b/library/cpp/archive/models_archive_reader.h
index 25802a7b00..ea237aecb0 100644
--- a/library/cpp/archive/models_archive_reader.h
+++ b/library/cpp/archive/models_archive_reader.h
@@ -9,7 +9,7 @@ class TBlob;
class IModelsArchiveReader {
public:
- virtual ~IModelsArchiveReader() = default;
+ virtual ~IModelsArchiveReader() = default;
virtual size_t Count() const = 0;
virtual TString KeyByIndex(size_t n) const = 0;
virtual bool Has(const TStringBuf key) const = 0;
diff --git a/library/cpp/yson/node/node.h b/library/cpp/yson/node/node.h
index 1ba5bb0913..5f90f95df0 100644
--- a/library/cpp/yson/node/node.h
+++ b/library/cpp/yson/node/node.h
@@ -128,9 +128,9 @@ public:
// Returns true if TNode is neither Null, nor Undefined
bool HasValue() const;
- template<typename T>
- bool IsOfType() const noexcept;
-
+ template<typename T>
+ bool IsOfType() const noexcept;
+
// Int64, Uint64, Double, or Bool
bool IsArithmetic() const;
@@ -161,7 +161,7 @@ public:
// integer types cast
// makes overflow checks
- template<typename T>
+ template<typename T>
T IntCast() const;
// integers <-> double <-> string
@@ -170,11 +170,11 @@ public:
T ConvertTo() const;
template<typename T>
- T& As();
-
- template<typename T>
- const T& As() const;
-
+ T& As();
+
+ template<typename T>
+ const T& As() const;
+
static TNode CreateList();
static TNode CreateList(TListType list);
static TNode CreateMap();
@@ -294,7 +294,7 @@ inline bool TNode::IsArithmetic() const {
return IsInt64() || IsUint64() || IsDouble() || IsBool();
}
-template<typename T>
+template<typename T>
inline T TNode::IntCast() const {
if constexpr (std::is_integral<T>::value) {
try {
@@ -494,20 +494,20 @@ inline T& TNode::ChildAs(size_t index) {
}
template<typename T>
-inline bool TNode::IsOfType() const noexcept {
+inline bool TNode::IsOfType() const noexcept {
return std::holds_alternative<T>(Value_);
-}
-
-template<typename T>
-inline T& TNode::As() {
+}
+
+template<typename T>
+inline T& TNode::As() {
return std::get<T>(Value_);
-}
-
-template<typename T>
-inline const T& TNode::As() const {
+}
+
+template<typename T>
+inline const T& TNode::As() const {
return std::get<T>(Value_);
-}
-
+}
+
////////////////////////////////////////////////////////////////////////////////
namespace NNodeCmp {
diff --git a/util/network/socket.h b/util/network/socket.h
index 7ae060a2da..40c8648b40 100644
--- a/util/network/socket.h
+++ b/util/network/socket.h
@@ -248,18 +248,18 @@ public:
{
}
- inline TSocketHolder(TSocketHolder&& other) noexcept {
+ inline TSocketHolder(TSocketHolder&& other) noexcept {
Fd_ = other.Fd_;
other.Fd_ = INVALID_SOCKET;
}
- inline TSocketHolder& operator=(TSocketHolder&& other) noexcept {
- Close();
- Swap(other);
-
- return *this;
- }
-
+ inline TSocketHolder& operator=(TSocketHolder&& other) noexcept {
+ Close();
+ Swap(other);
+
+ return *this;
+ }
+
inline ~TSocketHolder() {
Close();
}