swift
Public Member Functions | List of all members
swift::misc::Iterators::ConcatIterator< I > Class Template Reference

Iterator wrapper which concatenates zero or more pairs of begin and end iterators. More...

Public Types

using iterator_category = std::forward_iterator_tag
 Types.
 
using value_type = typename std::iterator_traits< I >::value_type
 Types.
 
using difference_type = typename std::iterator_traits< I >::difference_type
 Types.
 
using pointer = typename std::iterator_traits< I >::pointer
 Types.
 
using reference = typename std::iterator_traits< I >::reference
 Types.
 

Public Member Functions

 ConcatIterator (QVector< I > iterators)
 Constructor.
 
 ConcatIterator (I end)
 Implicit conversion from an end iterator.
 
operator-> ()
 Indirection operator, returns the underlying iterator. Undefined if iterator is at the end.
 
std::iterator_traits< I >::reference operator* ()
 Dereference operator, returns the object referenced by the iterator. Undefined if iterator is at the end.
 
ConcatIteratoroperator++ ()
 Advance to the next element. Undefined if iterator is at the end.
 
ConcatIterator operator++ (int)
 Advance to the next element. Undefined if iterator is at the end.
 
bool operator== (const ConcatIterator &other) const
 Comparison operators.
 
bool operator!= (const ConcatIterator &other) const
 Comparison operators.
 
bool operator< (const ConcatIterator &other) const
 Comparison operators.
 
bool operator<= (const ConcatIterator &other) const
 Comparison operators.
 
bool operator> (const ConcatIterator &other) const
 Comparison operators.
 
bool operator>= (const ConcatIterator &other) const
 Comparison operators.
 

Detailed Description

template<class I>
class swift::misc::Iterators::ConcatIterator< I >

Iterator wrapper which concatenates zero or more pairs of begin and end iterators.

Definition at line 278 of file iterator.h.


The documentation for this class was generated from the following file: