Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

10.47 reverse()

PrototypesHeader File(s)
template <class T>
RWMathVec<T>
reverse(const RWMathVec<T>&)
<rw/math/mathvec.h>

10.47.1 Description

Takes a vector x as an argument and returns a vector y whose elements are in reversed order. For example, if x = [ 2, 5, 1, 6], then y = [ 6, 1, 5, 2]. The reversed vector y is actually a reversed slice of the original vector. Hence, the results of this function can be used as an lvalue.


Previous fileTop of DocumentContentsIndexNext file

©Copyright 1999, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.