aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/enumbitset/enumbitset.h
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:46 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:46 +0300
commit8cbc307de0221f84c80c42dcbe07d40727537e2c (patch)
tree625d5a673015d1df891e051033e9fcde5c7be4e5 /library/cpp/enumbitset/enumbitset.h
parent30d1ef3941e0dc835be7609de5ebee66958f215a (diff)
downloadydb-8cbc307de0221f84c80c42dcbe07d40727537e2c.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 1 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 41864c3a04..433132358a 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);
}