aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/buffer.h
diff options
context:
space:
mode:
authorbulatman <bulatman@yandex-team.ru>2022-02-10 16:45:50 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:50 +0300
commit2f6ca198245aeffd5e2d82b65927c2465b68b4f5 (patch)
tree9142afc54d335ea52910662635b898e79e192e49 /util/generic/buffer.h
parent6560e4993b14d193f8c879e33a3de5e5eba6e21d (diff)
downloadydb-2f6ca198245aeffd5e2d82b65927c2465b68b4f5.tar.gz
Restoring authorship annotation for <bulatman@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/buffer.h')
-rw-r--r--util/generic/buffer.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/util/generic/buffer.h b/util/generic/buffer.h
index 51f6fb20a4..9576467404 100644
--- a/util/generic/buffer.h
+++ b/util/generic/buffer.h
@@ -223,17 +223,17 @@ public:
return Begin() + Size();
}
- bool operator==(const TBuffer& other) const noexcept {
- if (Empty()) {
- return other.Empty();
- }
- return Size() == other.Size() && 0 == std::memcmp(Data(), other.Data(), Size());
- }
-
- bool operator!=(const TBuffer& other) const noexcept {
- return !(*this == other);
- }
-
+ bool operator==(const TBuffer& other) const noexcept {
+ if (Empty()) {
+ return other.Empty();
+ }
+ return Size() == other.Size() && 0 == std::memcmp(Data(), other.Data(), Size());
+ }
+
+ bool operator!=(const TBuffer& other) const noexcept {
+ return !(*this == other);
+ }
+
private:
void DoReserve(size_t len);
void Realloc(size_t len);