data function for vector and matrix

This commit is contained in:
BlackMATov
2020-12-03 06:34:28 +07:00
parent 6513122fc5
commit 76174171f3
5 changed files with 69 additions and 1 deletions

View File

@@ -134,6 +134,9 @@ public:
void swap(vec& other) noexcept(is_nothrow_swappable_v<T>);
constexpr pointer data() noexcept;
constexpr const_pointer data() const noexcept;
constexpr reference at(size_t index);
constexpr const_reference at(size_t index) const;
@@ -275,6 +278,9 @@ public:
void swap(mat& other) noexcept(is_nothrow_swappable_v<T>);
constexpr pointer data() noexcept;
constexpr const_pointer data() const noexcept;
constexpr reference at(size_t index);
constexpr const_reference at(size_t index) const;