next up previous contents
Next: Shape restrictions: Up: Constructor Previous: Value restrictions:

Type restrictions:

T should be a POD type (see section 5.1.2). A conventional binary multiplication operator, *, must be defined for objects of type T, the assignment operator *= must operate in a compatible way, and the symbol 1 must be convertible to type T, yielding a unit of the multiplication operation.

All standard arithmetic types of C++ satisfy these requirements for T.



Guansong Zhang
Fri Oct 9 12:29:23 EDT 1998