Viewport controls

This commit is contained in:
Dynamitos committed 2022-11-17 16:47:42 +01:00
1 parent f635ee2100
commit 4ba0bf3b45
73 files changed
+627 -449

No files matched your search

+10
View File
@@ -705,6 +705,16 @@ public:
{
return _data;
}
template<typename I>
constexpr reference operator[](I index) noexcept
{
return operator[](static_cast<size_t>(index));
}
template<typename I>
constexpr const_reference operator[](I index) const noexcept
{
return operator[](static_cast<size_t>(index));
}
constexpr reference operator[](size_type index) noexcept
{
assert(index < N);