Rogue Wave banner
Previous fileTop of documentContentsIndexNext file

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 documentContentsIndexNext file
©Copyright 1998, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.
OEM Release, June 1998