template<typename T>
ArrayView class
Provides a read/write view into any contiguous array with a combination of a pointer and size. The ArrayView does not own the referenced array and cannot add or remove elements from it. It can be used to pass arbitrary arrays as parameters to functions and as a way to integrate C style and C++ style arrays. See the tp::
Base classes
-
template<typename TValue>class ArrayViewBase<T>
- Shared base implementation of array views.
Constructors, destructors, conversion operators
- ArrayView(typename Base::PointerType data, typename Base::SizeType size) constexpr noexcept
- Creates a view of a contiguous range of values.
Function documentation
template<typename T>
tp:: ArrayView<T>:: ArrayView(typename Base::PointerType data,
typename Base::SizeType size) constexpr noexcept
Creates a view of a contiguous range of values.
Parameters | |
---|---|
data | The pointer to the start of the viewed range. |
size | The number of elements in the viewed range. |