mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 15:03:27 +00:00
added operator square brackets
This commit is contained in:
@@ -66,6 +66,11 @@ namespace omath
|
||||
m_data = other.m_data;
|
||||
}
|
||||
|
||||
OMATH_API constexpr Type& operator[](const size_t row, const size_t col)
|
||||
{
|
||||
return At(row, col);
|
||||
}
|
||||
|
||||
OMATH_API constexpr Mat(Mat&& other) noexcept
|
||||
{
|
||||
m_data = std::move(other.m_data);
|
||||
|
||||
Reference in New Issue
Block a user