We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a13880f commit e94acc8Copy full SHA for e94acc8
1 file changed
dll_src/vector_base.hpp
@@ -43,6 +43,10 @@ class VecBase {
43
[[nodiscard]] constexpr ConstIterator end() const noexcept { return data.end(); }
44
[[nodiscard]] constexpr ConstIterator cend() const noexcept { return data.cend(); }
45
46
+ // Data pointer access.
47
+ [[nodiscard]] constexpr T *ptr() noexcept { return data.data(); }
48
+ [[nodiscard]] constexpr const T *ptr() const noexcept { return data.data(); }
49
+
50
// Size and capacity.
51
[[nodiscard]] static constexpr std::size_t size() noexcept { return N; }
52
0 commit comments