swift
Classes | Namespaces | Functions
iterator.h File Reference

Go to the source code of this file.

Classes

class  swift::misc::Iterators::OutputIterator< F >
 Configurable output iterator using a provided functor to do the insertion. More...
 
class  swift::misc::Iterators::TransformIterator< I, F >
 Iterator wrapper which applies some transformation function to each element. More...
 
class  swift::misc::Iterators::ConditionalIterator< I, F >
 Iterator wrapper which skips over any elements which do not satisfy a given condition predicate. More...
 
class  swift::misc::Iterators::ConcatIterator< I >
 Iterator wrapper which concatenates zero or more pairs of begin and end iterators. More...
 

Namespaces

 swift::misc
 Free functions in swift::misc.
 
 swift::misc::Iterators
 Iterator classes for the containers.
 

Functions

template<class F >
auto swift::misc::Iterators::makeOutputIterator (F &&func)
 Return an output iterator of type deduced from the argument.
 
template<class T >
auto swift::misc::Iterators::makeInsertIterator (T &container)
 Return an insert iterator appropriate to the container type (uses push_back or insert).
 
template<class I , class F >
auto swift::misc::Iterators::makeTransformIterator (I iterator, F function) -> TransformIterator< I, F >
 Construct a TransformIterator of the appropriate type from deduced template function arguments.
 
template<class I , class F >
auto swift::misc::Iterators::makeConditionalIterator (I iterator, I end, F predicate) -> ConditionalIterator< I, F >
 Construct a ConditionalIterator of the appropriate type from deduced template function arguments.
 
template<class I >
auto swift::misc::Iterators::makeConcatIterator (QVector< I > iterators) -> ConcatIterator< I >
 Construct a ConcatIterator of the appropriate type from deduced template function arguments.