WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
wpi::util::iterator_range< IteratorT > Class Template Reference

A range adaptor for a pair of iterators. More...

#include <wpi/util/iterator_range.hpp>

Public Member Functions

template<typename Container, std::enable_if_t< explicitly_convertible< wpi::util::detail::IterOfRange< Container >, IteratorT >::value > * = nullptr>
 iterator_range (Container &&c)
 iterator_range (IteratorT begin_iterator, IteratorT end_iterator)
IteratorT begin () const
IteratorT end () const
bool empty () const

Detailed Description

template<typename IteratorT>
class wpi::util::iterator_range< IteratorT >

A range adaptor for a pair of iterators.

This just wraps two iterators into a range-compatible interface. Nothing fancy at all.

Constructor & Destructor Documentation

◆ iterator_range() [1/2]

template<typename IteratorT>
template<typename Container, std::enable_if_t< explicitly_convertible< wpi::util::detail::IterOfRange< Container >, IteratorT >::value > * = nullptr>
wpi::util::iterator_range< IteratorT >::iterator_range ( Container && c)
inline

◆ iterator_range() [2/2]

template<typename IteratorT>
wpi::util::iterator_range< IteratorT >::iterator_range ( IteratorT begin_iterator,
IteratorT end_iterator )
inline

Member Function Documentation

◆ begin()

template<typename IteratorT>
IteratorT wpi::util::iterator_range< IteratorT >::begin ( ) const
inline

◆ empty()

template<typename IteratorT>
bool wpi::util::iterator_range< IteratorT >::empty ( ) const
inline

◆ end()

template<typename IteratorT>
IteratorT wpi::util::iterator_range< IteratorT >::end ( ) const
inline

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