Previous fileTop of DocumentContentsIndex pageNext file
Apache C++ Standard Library User's Guide

22.5 Computed Assignment Operators

Class valarray offers two different versions of the following operators: operator*=(), operator/=(), operator%=(), operator+=(), operator-=(), operator^=(), operator&=(), operator|=(), operator<<=(), and operator>>=(). In each case, one version takes a valarray reference and the second takes a T&. The first version of each operation applies its operation to the corresponding elements of self and the valarray argument. The second version applies the operation to all elements of self using the T& argument. For example:



Previous fileTop of DocumentContentsIndex pageNext file