aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorswarmer <swarmer@yandex-team.com>2024-10-16 03:27:53 +0300
committerswarmer <swarmer@yandex-team.com>2024-10-16 03:50:21 +0300
commita275f7ac7e977a142ccb341736a0effe1b6c1f2b (patch)
treed73aebc2d525d0b97f881edd3a8f26cf52b32f7d
parent35c54372ef41e968a90908579c2fec61650af39e (diff)
downloadydb-a275f7ac7e977a142ccb341736a0effe1b6c1f2b.tar.gz
nodiscard attribute for the TReserveTag
commit_hash:cb3317dd036b226397730ad8c04a5f1a22f0b164
-rw-r--r--util/generic/reserve.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/generic/reserve.h b/util/generic/reserve.h
index 87fe4a325f..8ee2d31822 100644
--- a/util/generic/reserve.h
+++ b/util/generic/reserve.h
@@ -1,7 +1,7 @@
#pragma once
namespace NDetail {
- struct TReserveTag {
+ struct [[nodiscard]] TReserveTag {
size_t Capacity;
};
} // namespace NDetail