template<typename T>
tp::ArrayParameter class

Similar to tp::ArrayView, it provides read/write view of a contiguous array. It is used to view arrays that may have a temporary lifetime, such as std::initializer_list.

Base classes

template<typename TValue>
class ArrayViewBase<T>
Shared base implementation of array views.

Constructors, destructors, conversion operators

template<typename ViewValueType>
ArrayParameter(ArrayView<ViewValueType> arrayView) constexpr noexcept
Implicit conversion constructor from tp::ArrayView.
ArrayParameter(std::initializer_list<T> list) constexpr noexcept
Implicit conversion constructor from std::initializer_list.
ArrayParameter(typename Base::PointerType data, typename Base::SizeType size) constexpr noexcept
Creates a view of a contiguous range of values that may have a temporary lifetime.

Function documentation

template<typename T>
tp::ArrayParameter<T>::ArrayParameter(typename Base::PointerType data, typename Base::SizeType size) constexpr noexcept

Creates a view of a contiguous range of values that may have a temporary lifetime.

Parameters
data The pointer to the start of the viewed range.
size The number of elements in the viewed range.