Iterators and the std() Gateway
The Essential Tools Module templates are meant to enhance the C++ Standard Library, not to stand as a barrier to it. The iterators described in the
Iterators in Class Templates 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 C++ Standard Library collection class. This is accomplished via the std() member function, which returns a reference to the implementation.