std::mask_array (3) - Linux Manuals
std::mask_array: std::mask_array
NAME
std::mask_array - std::mask_array
Synopsis
Defined in header <valarray>
template< class T > class mask_array;
std::mask_array is a helper template used by the valarray_subscript_operator with std::valarray<bool> argument. It has reference semantics and provides access to the subset of the valarray consisting of the elements whose indices correspond to true values in the std::valarray<bool> mask.
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 mask.
operator%= (public member function)
operator&=
operator|=
operator^=
operator<<=
operator>>=
Example
// Run this code
Output: