ALP User Documentation  0.8.preview
Algebraic Programming User Documentation
List of all members
Adapter< SubIterT, > Class Template Reference

An iterator that simply adapts the values returned by another iterator. More...

Detailed Description

template<typename SubIterT, typename std::enable_if< std::is_same< typename std::iterator_traits< SubIterT >::iterator_category, std::random_access_iterator_tag >::value, void >::type * = nullptr>
class grb::utils::iterators::Adapter< SubIterT, >

An iterator that simply adapts the values returned by another iterator.

The resulting iterator takes all the properties of the sub-iterator. It will only support const views of the collection underlying the sub-iterator.

Note
Currently the adapter supports random access iterators only. If support for other iterator categories is required, please submit a feature request and/or contact the maintainers.
Template Parameters
SubIterTThe underlying iterator type.

For ease-of-use, see make_adapter_iterator(). If not using that factory method and rather this class directly, the type SubIterT must always be explicitly given.


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