RPNX::DataStructures
Header-only C++ data structures and supporting utilities.
Loading...
Searching...
No Matches
rpnx::dyn_input_range< V > Class Template Reference

Lightweight range of type-erased comparable input iterators. More...

#include <dyn_iterator.hpp>

Public Member Functions

 dyn_input_range (dyn_comparable_input_iter< V > begin, dyn_comparable_input_iter< V > end)
 Constructs a half-open range.
 
dyn_comparable_input_iter< V > begin () const
 Returns the first position by value.
 
dyn_comparable_input_iter< V > end () const
 Returns the one-past-last position by value.
 

Detailed Description

template<typename V>
class rpnx::dyn_input_range< V >

Lightweight range of type-erased comparable input iterators.

Template Parameters
VValue type produced by iteration.

Constructor & Destructor Documentation

◆ dyn_input_range()

template<typename V>
rpnx::dyn_input_range< V >::dyn_input_range ( dyn_comparable_input_iter< V > begin,
dyn_comparable_input_iter< V > end )
inline

Constructs a half-open range.

Parameters
beginFirst position.
endOne-past-last position with the same erased iterator type.

Member Function Documentation

◆ begin()

template<typename V>
dyn_comparable_input_iter< V > rpnx::dyn_input_range< V >::begin ( ) const
inline

Returns the first position by value.

Returns
Beginning iterator.

◆ end()

template<typename V>
dyn_comparable_input_iter< V > rpnx::dyn_input_range< V >::end ( ) const
inline

Returns the one-past-last position by value.

Returns
Ending iterator.

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