Skip to content
Snippets Groups Projects

Add SubArray class

Merged Stéphane Del Pino requested to merge feature/item-array into develop
1 file
+ 5
0
Compare changes
  • Side-by-side
  • Inline
+ 5
0
@@ -57,6 +57,11 @@ class [[nodiscard]] SubArray
Assert(begin + size <= array.size(), "SubView is not contained in the source Array");
}
PUGS_INLINE
explicit SubArray(DataType* const raw_array, size_t begin, size_t size)
: m_sub_values{raw_array + begin}, m_size{size}
{}
PUGS_INLINE
SubArray() = delete;
Loading