aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp
diff options
context:
space:
mode:
authorhiddenpath <hiddenpath@yandex-team.com>2024-02-01 11:27:59 +0300
committerAlexander Smirnov <alex@ydb.tech>2024-02-09 19:16:50 +0300
commit15b635970831875460d193dfe28f639b453e105b (patch)
tree09a5b2579b0b269bf124d3ec43b1ce277027f659 /library/cpp
parent1bc07bc56299810ccfc3a780c3e6718d8033c93b (diff)
downloadydb-15b635970831875460d193dfe28f639b453e105b.tar.gz
Mark methods as const
Diffstat (limited to 'library/cpp')
-rw-r--r--library/cpp/containers/paged_vector/paged_vector.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/cpp/containers/paged_vector/paged_vector.h b/library/cpp/containers/paged_vector/paged_vector.h
index 0fe1660763f..3a2c58caf7b 100644
--- a/library/cpp/containers/paged_vector/paged_vector.h
+++ b/library/cpp/containers/paged_vector/paged_vector.h
@@ -115,17 +115,17 @@ namespace NPagedVector {
return it;
}
- TSelf operator+(ptrdiff_t off) {
+ TSelf operator+(ptrdiff_t off) const {
TSelf res = *this;
res += off;
return res;
}
- TSelf operator-(ptrdiff_t off) {
+ TSelf operator-(ptrdiff_t off) const {
return this->operator+(-off);
}
- size_t GetOffset() {
+ size_t GetOffset() const {
return Offset;
}
};