[Univ of Cambridge] [Dept of Engineering]
next up previous contents
Next: Size Up: Strings Previous: Strings

Iterators

The following routines provide iterators (pointers) of various kinds, depending on whether you want to go forwards or backwards through the string and whether you want to change the string. The same kind of routines exist for vector etc.

// Iterators - note the various types
 iterator       begin();
 const_iterator begin() const;
 iterator       end();
 const_iterator end() const;
 reverse_iterator       rbegin();
 const_reverse_iterator rbegin() const;
 reverse_iterator       rend();
 const_reverse_iterator rend() const;



Tim Love
2001-07-05