mirror of
https://github.com/BlackMATov/vmath.hpp.git
synced 2025-12-15 04:35:25 +07:00
data function for vector and matrix
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user