CXXIter 0.2
Loading...
Searching...
No Matches
CXXIter::trait::DoubleEndedIterator< T > Struct Template Reference

Trait that extends the Iterator trait with double-ended functionality. More...

#include <Traits.h>

Collaboration diagram for CXXIter::trait::DoubleEndedIterator< T >:

Public Types

using Self = typename trait::Iterator< T >::Self
 

Static Public Member Functions

static constexpr IterValue< typename Iterator< T >::Item > nextBack (Self &self)=delete
 Pull the next last element from the iterator pipeline previous to this pipeline-element. More...
 

Detailed Description

template<typename T>
struct CXXIter::trait::DoubleEndedIterator< T >

Trait that extends the Iterator trait with double-ended functionality.

Implementing this trait extends the iterator with the functionality to pull elements from the back. This can be arbitrarily mixed. Elements can e.g. be retrieved from front and back alternatingly.

Definition at line 98 of file Traits.h.

Member Typedef Documentation

◆ Self

template<typename T >
using CXXIter::trait::DoubleEndedIterator< T >::Self = typename trait::Iterator<T>::Self

Definition at line 99 of file Traits.h.

Member Function Documentation

◆ nextBack()

template<typename T >
static constexpr IterValue< typename Iterator< T >::Item > CXXIter::trait::DoubleEndedIterator< T >::nextBack ( Self &  self)
inlinestaticconstexprdelete

Pull the next last element from the iterator pipeline previous to this pipeline-element.

Parameters
selfReference to the instance of the class for which trait::DoubleEndedIterator is being specialized.
Returns
An element (if any) wrapped in the CXXIter::IterValue.

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