Rogue Wave banner
Previous fileTop of documentContentsIndexNext file

11.8 Iterators and the std() Gateway

The Tools.h++ templates are meant to enhance the Standard C++ Library, not to stand as a barrier to it. The iterators described in the previous section are standard iterators, and you can use them in conjunction with any components offering a standard iterator-based interface. In particular, you can use all of the standard algorithms with the Rogue Wave standard library-based collections. For example:

RWTValOrderedVector<int> vec;

// ... < put stuff in vector >

// Set the first 5 elements to 0:
fill(vec.begin(), vec.begin() + 5, 0);

In addition, you are always free to access, and in some cases to manipulate, the underlying Standard C++ Library collection class. This is accomplished via the std() member function, which returns a reference to the implementation.


Previous fileTop of documentContentsIndexNext file
©Copyright 1999, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.