rangeless::fn
rangeless::fn::view< Iterator > Class Template Reference

A view is just a pair of interators with begin() and end() interface. More...

#include <fn.hpp>

Public Types

using iterator = Iterator
 
using value_type = typename iterator::value_type
 

Public Member Functions

 view (Iterator b, Iterator e)
 
 view ()=default
 
Iterator begin () const
 
Iterator end () const
 
void erase (Iterator b, Iterator e)
 
void clear ()
 
bool empty () const
 

Detailed Description

template<typename Iterator>
class rangeless::fn::view< Iterator >

A view is just a pair of interators with begin() and end() interface.

Definition at line 981 of file fn.hpp.

Member Typedef Documentation

◆ iterator

template<typename Iterator>
using rangeless::fn::view< Iterator >::iterator = Iterator

Definition at line 995 of file fn.hpp.

◆ value_type

template<typename Iterator>
using rangeless::fn::view< Iterator >::value_type = typename iterator::value_type

Definition at line 996 of file fn.hpp.

Constructor & Destructor Documentation

◆ view() [1/2]

template<typename Iterator>
rangeless::fn::view< Iterator >::view ( Iterator  b,
Iterator  e 
)
inline

Definition at line 988 of file fn.hpp.

◆ view() [2/2]

template<typename Iterator>
rangeless::fn::view< Iterator >::view ( )
default

Member Function Documentation

◆ begin()

template<typename Iterator>
Iterator rangeless::fn::view< Iterator >::begin ( ) const
inline

Definition at line 998 of file fn.hpp.

◆ clear()

template<typename Iterator>
void rangeless::fn::view< Iterator >::clear ( )
inline

Definition at line 1025 of file fn.hpp.

◆ empty()

template<typename Iterator>
bool rangeless::fn::view< Iterator >::empty ( ) const
inline

Definition at line 1030 of file fn.hpp.

◆ end()

template<typename Iterator>
Iterator rangeless::fn::view< Iterator >::end ( ) const
inline

Definition at line 999 of file fn.hpp.

◆ erase()

template<typename Iterator>
void rangeless::fn::view< Iterator >::erase ( Iterator  b,
Iterator  e 
)
inline

Truncate the view.

Precondition: b == begin() || e = end(); throws std::logic_error otherwise. This does not affect the underlying range.

Definition at line 1005 of file fn.hpp.


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