命名空间
变体
操作

std::indirect_array<T>::operator+=,-=,*=,/=,%=,&=,|=,^=,<<=,>>=

来自 cppreference.com
 
 
 
 
std::indirect_array
成员函数
indirect_array::operator+=indirect_array::operator-=indirect_array::operator*=indirect_array::operator/=indirect_array::operator%=indirect_array::operator&=indirect_array::operator|=indirect_array::operator^=indirect_array::operator<<=indirect_array::operator>>=
 
void operator+=( const std::valarray<T>& other ) const;
void operator-=( const std::valarray<T>& other ) const;
void operator*=( const std::valarray<T>& other ) const;
void operator/=( const std::valarray<T>& other ) const;
void operator%=( const std::valarray<T>& other ) const;
void operator&=( const std::valarray<T>& other ) const;
void operator|=( const std::valarray<T>& other ) const;
void operator^=( const std::valarray<T>& other ) const;
void operator<<=( const std::valarray<T>& other ) const;
void operator>>=( const std::valarray<T>& other ) const;

将相应的运算应用于引用的元素和 other 的元素。

内容

[编辑] 参数

other - 要从中检索值的数组参数

[编辑] 返回值

(无)

[编辑] 异常

可能会抛出实现定义的异常。

[编辑] 示例