CsString
1.4.1
|
Reverse iterator class for CsBasicString. More...
Inherits reverse_iterator< T >, reverse_iterator< T >
Public Typedefs | |
using | size_type = std::ptrdiff_t |
Public Member Functions | |
CsStringReverseIterator () = default | |
template<typename U> | |
CsStringReverseIterator (CsStringReverseIterator< U > iter) | |
CsStringReverseIterator (T iter) | |
bool | operator!= (const CsStringReverseIterator< T > &other) const |
decltype (std::declval< T >().operator*()) | operator* () const |
CsStringReverseIterator< T > | operator+ (size_type n) const |
CsStringReverseIterator< T > & | operator++ () |
CsStringReverseIterator< T > | operator++ (int) |
CsStringReverseIterator< T > & | operator+= (size_type n) |
size_type | operator- (CsStringReverseIterator< T > other) const |
CsStringReverseIterator< T > | operator- (size_type n) const |
CsStringReverseIterator< T > & | operator-- () |
CsStringReverseIterator< T > | operator-- (int) |
CsStringReverseIterator< T > & | operator-= (size_type n) |
decltype (std::declval< T >().operator->()) | operator-> () const |
bool | operator< (const CsStringReverseIterator< T > &other) const |
bool | operator<= (const CsStringReverseIterator< T > &other) const |
bool | operator== (const CsStringReverseIterator< T > &other) const |
bool | operator> (const CsStringReverseIterator< T > &other) const |
bool | operator>= (const CsStringReverseIterator< T > &other) const |
CsChar | operator[] (size_type n) const |
This class implements a random access iterator reverse for CsBasicString. All CsStringReverseIterators are const.
CsStringReverseIterator::size_type |
Typedef for an integer type representing sizes in a reverse iterator.
|
inlinedefault |
Constructs an uninitialized CsStringReverseIterator.
|
inline |
Constructs a CsStringReverseIterator which points to the same code point as iter.
|
inline |
Constructs a CsStringReverseIterator which points to the same code point as iter.
bool CsStringReverseIterator::operator!= | ( | const CsStringReverseIterator<T> & | other | ) | const |
Returns true if other points to a different code point than this iterator, otherwise returns false.
CsChar CsStringReverseIterator::operator* | ( | ) | const |
Returns the current code point.
CsStringReverseIterator< T > CsStringReverseIterator::operator+ | ( | size_type | n | ) | const |
Returns an iterator to the code point j positions after this iterator. If j is negative, the iterator goes backward.
CsStringReverseIterator< T > & CsStringReverseIterator::operator++ | ( | ) |
The prefix ++ operator advances the iterator to the next code point in the string and returns the new iterator.
Calling this methods on the end() iterator leads to undefined results.
CsStringReverseIterator< T > CsStringReverseIterator::operator++ | ( | int | ) |
The postfix ++ operator advances the iterator to the next code point in the string and returns the old iterator.
CsStringReverseIterator< T > & CsStringReverseIterator::operator+= | ( | size_type | n | ) |
Advances the iterator by j code points. If j is negative, the iterator goes backward.
size_type CsString::CsStringReverseIterator< T >::operator- | ( | CsStringReverseIterator<T> | other | ) | const |
Returns the number of code points between the code point pointed to by other and the code point pointed to by this iterator.
CsStringReverseIterator< T > CsString::CsStringReverseIterator< T >::operator- | ( | size_type | n | ) | const |
Returns an iterator to the code point at n positions backward from this iterator. If n is negative, the iterator goes forward.
CsStringReverseIterator< T > & CsStringReverseIterator::operator-- | ( | ) |
The prefix – operator decrements the iterator to the previous code point in the string and returns the new iterator.
Calling this method on begin() leads to undefined results.
CsStringReverseIterator< T > CsStringReverseIterator::operator-- | ( | int | ) |
The postfix – operator decrements the iterator to the previous code point in the string and returns the old iterator.
CsStringReverseIterator< T > & CsStringReverseIterator::operator-= | ( | size_type | n | ) |
Returns an iterator to the code point at j positions backward from this iterator. If j is negative the iterator goes forward.
CsChar CsStringReverseIterator::operator-> | ( | ) | const |
Returns the current code point.
bool CsStringReverseIterator::operator< | ( | const CsStringReverseIterator<T> & | other | ) | const |
Returns true if this iterator is closer to the beginning of the string than the other iterator.
bool CsStringReverseIterator::operator<= | ( | const CsStringReverseIterator<T> & | other | ) | const |
Returns true if this iterator is equal to or closer to the beginning of the string than the other iterator.
bool CsStringReverseIterator::operator== | ( | const CsStringReverseIterator<T> & | other | ) | const |
Returns true if other points to the same code point as this iterator, otherwise returns false.
bool CsStringReverseIterator::operator> | ( | const CsStringReverseIterator<T> & | other | ) | const |
Returns true if this iterator is further from the beginning of the string than the other iterator.
bool CsStringReverseIterator::operator>= | ( | const CsStringReverseIterator<T> & | other | ) | const |
Returns true if this iterator is equal to or further from the beginning of the string than the other iterator.
Returns the code point at position this + n.