aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/enumbitset/enumbitset.h
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:48 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:48 +0300
commit9abfb1a53b7f7b791444d1378e645d8fad9b06ed (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /library/cpp/enumbitset/enumbitset.h
parent8cbc307de0221f84c80c42dcbe07d40727537e2c (diff)
downloadydb-9abfb1a53b7f7b791444d1378e645d8fad9b06ed.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/enumbitset/enumbitset.h')
-rw-r--r--library/cpp/enumbitset/enumbitset.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/library/cpp/enumbitset/enumbitset.h b/library/cpp/enumbitset/enumbitset.h
index 433132358a..41864c3a04 100644
--- a/library/cpp/enumbitset/enumbitset.h
+++ b/library/cpp/enumbitset/enumbitset.h
@@ -1,11 +1,11 @@
#pragma once
-#include <util/ysaveload.h>
-#include <util/generic/bitmap.h>
+#include <util/ysaveload.h>
+#include <util/generic/bitmap.h>
#include <util/generic/serialized_enum.h>
-#include <util/generic/yexception.h>
-#include <util/string/cast.h>
-#include <util/string/printf.h>
+#include <util/generic/yexception.h>
+#include <util/string/cast.h>
+#include <util/string/printf.h>
#include <util/system/yassert.h>
// Stack memory bitmask for TEnum values [begin, end).
@@ -134,7 +134,7 @@ public:
}
bool operator<(const TThis& right) const {
- Y_ASSERT(this->GetChunkCount() == right.GetChunkCount());
+ Y_ASSERT(this->GetChunkCount() == right.GetChunkCount());
for (size_t i = 0; i < this->GetChunkCount(); ++i) {
if (this->GetChunks()[i] < right.GetChunks()[i])
return true;
@@ -258,7 +258,7 @@ public:
}
//serialization to/from stream
- void Save(IOutputStream* buffer) const {
+ void Save(IOutputStream* buffer) const {
::Save(buffer, (ui32)Count());
for (TEnum bit : *this) {
::Save(buffer, (ui32)bit);
@@ -363,7 +363,7 @@ public:
}
TEnum operator*() const noexcept {
- Y_ASSERT(Value < EndIndex);
+ Y_ASSERT(Value < EndIndex);
return static_cast<TEnum>(Value);
}
@@ -372,7 +372,7 @@ public:
}
TIterator& operator++() noexcept {
- Y_ASSERT(Value < EndIndex);
+ Y_ASSERT(Value < EndIndex);
TEnum res;
if (BitMap->FindNext(static_cast<TEnum>(Value), res)) {
Value = static_cast<int>(res);
@@ -399,7 +399,7 @@ public:
private:
static size_t Pos(TEnum c) {
- Y_ASSERT(IsValid(c));
+ Y_ASSERT(IsValid(c));
return static_cast<size_t>(int(c) - BeginIndex);
}