diff options
author | vadim-xd <[email protected]> | 2025-03-19 18:04:13 +0300 |
---|---|---|
committer | vadim-xd <[email protected]> | 2025-03-19 18:37:58 +0300 |
commit | 3804b785cc4f57c5589d36672e3f116782e53892 (patch) | |
tree | 70f07e85a5408ff6470323afdaf961bb940eb12d /library/cpp | |
parent | 3fdf2486970da0c795a085f5e6e67f65f60dc219 (diff) |
Add TCompactVector::data()
For TArrayRef(TCompactVector)
commit_hash:d6b75e4cd93aa786abeb1c1cc00d9827f6d4ea15
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/containers/compact_vector/compact_vector.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/library/cpp/containers/compact_vector/compact_vector.h b/library/cpp/containers/compact_vector/compact_vector.h index c055bd49dab..238b336d1b8 100644 --- a/library/cpp/containers/compact_vector/compact_vector.h +++ b/library/cpp/containers/compact_vector/compact_vector.h @@ -169,6 +169,14 @@ public: return std::make_reverse_iterator(begin()); } + value_type* data() { + return Begin(); + } + + const value_type* data() const { + return Begin(); + } + void Swap(TThis& that) noexcept { DoSwap(Ptr, that.Ptr); } |