OR-Tools  9.6
iterator_range< IteratorT >

Detailed Description

template<typename IteratorT>
class operations_research::math_opt::iterator_range< IteratorT >

Definition at line 29 of file range.h.

Public Types

using iterator = IteratorT
 
using const_iterator = IteratorT
 
using value_type = typename std::iterator_traits< IteratorT >::value_type
 

Public Member Functions

 iterator_range ()
 
 iterator_range (IteratorT begin_iterator, IteratorT end_iterator)
 
IteratorT begin () const
 
IteratorT end () const
 
template<class It = IteratorT>
std::enable_if< std::is_base_of< std::random_access_iterator_tag, typename std::iterator_traits< It >::iterator_category >::value, size_t >::type size () const
 
bool empty () const
 

Member Typedef Documentation

◆ const_iterator

using const_iterator = IteratorT

Definition at line 32 of file range.h.

◆ iterator

using iterator = IteratorT

Definition at line 31 of file range.h.

◆ value_type

using value_type = typename std::iterator_traits<IteratorT>::value_type

Definition at line 33 of file range.h.

Constructor & Destructor Documentation

◆ iterator_range() [1/2]

iterator_range ( )
inline

Definition at line 35 of file range.h.

◆ iterator_range() [2/2]

iterator_range ( IteratorT  begin_iterator,
IteratorT  end_iterator 
)
inline

Definition at line 36 of file range.h.

Member Function Documentation

◆ begin()

IteratorT begin ( ) const
inline

Definition at line 40 of file range.h.

◆ empty()

bool empty ( ) const
inline

Definition at line 59 of file range.h.

◆ end()

IteratorT end ( ) const
inline

Definition at line 41 of file range.h.

◆ size()

std::enable_if<std::is_base_of<std::random_access_iterator_tag, typename std::iterator_traits< It>::iterator_category>::value, size_t>::type size ( ) const
inline

Definition at line 54 of file range.h.


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