String::Iterator Class Reference

A random access iterator class for String. More...

#include "String.hpp"

Public Types

using iterator_category = std::random_access_iterator_tag
 
using value_type = char
 
using difference_type = String::difference_type
 
using reference = Char &
 
using pointer = Char *
 
using ConstIterator = Iterator< true, Forward >
 

Public Member Functions

 Iterator (const Iterator &other)
 
 operator ConstIterator () const
 
Iteratoroperator= (const Iterator &that)
 
reference operator* () const
 
pointer operator-> () const
 
Iteratoroperator++ ()
 
Iterator operator++ (int)
 
Iteratoroperator-- ()
 
Iterator operator-- (int)
 
Iteratoroperator+= (difference_type offset)
 
Iterator operator+ (difference_type offset) const
 
Iteratoroperator-= (difference_type offset)
 
Iterator operator- (difference_type offset) const
 
difference_type operator- (const Iterator< true, Forward > &that) const
 
difference_type operator- (const Iterator< false, Forward > &that) const
 
reference operator[] (difference_type offset) const
 
bool operator== (const Iterator< true, Forward > &that) const
 
bool operator== (const Iterator< false, Forward > &that) const
 
bool operator!= (const Iterator< true, Forward > &that) const
 
bool operator!= (const Iterator< false, Forward > &that) const
 
bool operator< (const Iterator< true, Forward > &that) const
 
bool operator< (const Iterator< false, Forward > &that) const
 
bool operator> (const Iterator< true, Forward > &that) const
 
bool operator> (const Iterator< false, Forward > &that) const
 
bool operator<= (const Iterator< true, Forward > &that) const
 
bool operator<= (const Iterator< false, Forward > &that) const
 
bool operator>= (const Iterator< true, Forward > &that) const
 
bool operator>= (const Iterator< false, Forward > &that) const
 

Detailed Description

A random access iterator class for String.

Template Parameters
Constconstant-ness
Forwardforward/reverse traversal
Author
wk
Date
02.02.2011