std::indirect_array (3) - Linux Manuals
std::indirect_array: std::indirect_array
NAME
std::indirect_array - std::indirect_array
Synopsis
Defined in header <valarray>
template< class T > class indirect_array;
std::gslice_array is a helper template used by std::indirect_array subscript operator. It has reference semantics to a subset of the array specified by an indirect array (std::valarray<std::size_t> object).
Member types
Type Definition
value_type T
Member functions
constructor (public member function)
destructor (public member function)
operator= (public member function)
operator+=
operator-=
operator*=
operator/= performs arithmetic operation on the array referred by indirect array.
operator%= (public member function)
operator&=
operator|=
operator^=
operator<<=
operator>>=
Example
// Run this code
Output: