Skip to content
Snippets Groups Projects
Commit 83cd8774 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Add raw pointer based constructor

parent 6421b61a
No related branches found
No related tags found
1 merge request!84Add SubArray class
This commit is part of merge request !84. Comments created here will be created in the context of that merge request.
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment