template<typename TValue>
ArrayViewBase class
Shared base implementation of array views.
Derived classes
-
template<typename T>class ArrayView
- 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::
view, tp:: viewOne and tp:: viewRange functions for convenient ways of conversion to array view. -
template<typename T>class ArrayView
- 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::
view, tp:: viewOne and tp:: viewRange functions for convenient ways of conversion to array view. -
template<typename T>class ArrayView
- 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::
view, tp:: viewOne and tp:: viewRange functions for convenient ways of conversion to array view. -
template<typename T>class ArrayView
- 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::
view, tp:: viewOne and tp:: viewRange functions for convenient ways of conversion to array view. -
template<typename T>class ArrayView
- 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::
view, tp:: viewOne and tp:: viewRange functions for convenient ways of conversion to array view. -
template<typename T>class ArrayView
- 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::
view, tp:: viewOne and tp:: viewRange functions for convenient ways of conversion to array view. -
template<typename T>class ArrayView
- 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::
view, tp:: viewOne and tp:: viewRange functions for convenient ways of conversion to array view. -
template<typename T>class ArrayView
- 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::
view, tp:: viewOne and tp:: viewRange functions for convenient ways of conversion to array view. -
template<typename T>class ArrayView
- 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::
view, tp:: viewOne and tp:: viewRange functions for convenient ways of conversion to array view. -
template<typename T>class ArrayView
- 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::
view, tp:: viewOne and tp:: viewRange functions for convenient ways of conversion to array view. -
template<typename T>class ArrayView
- 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::
view, tp:: viewOne and tp:: viewRange functions for convenient ways of conversion to array view. -
template<typename T>class ArrayView
- 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::
view, tp:: viewOne and tp:: viewRange functions for convenient ways of conversion to array view. -
template<typename T>class ArrayView
- 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::
view, tp:: viewOne and tp:: viewRange functions for convenient ways of conversion to array view. -
template<typename T>class ArrayView
- 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::
view, tp:: viewOne and tp:: viewRange functions for convenient ways of conversion to array view.
Public functions
- auto back() const -> ReferenceType constexpr
- The last element in the view.
- auto begin() const -> IteratorType constexpr
- Iterator at the start of the view.
- auto data() const -> PointerType constexpr
- PointerType to the viewed array.
- auto empty() const -> bool constexpr
- Returns true if the viewed array is empty.
- auto end() const -> IteratorType constexpr
- Iterator at the end of the view.
- auto front() const -> ReferenceType constexpr
- The first element in the view.
- auto operator[](SizeType pos) const -> ReferenceType constexpr
- Returns a reference to the nth element.
- auto size() const -> SizeType constexpr
- Number of elements in the viewed array.