Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
util_intops::util::IteratorCRTP< IterT, ValueT > Struct Template Reference

Enable compatibility with STL algorithms. More...

#include <views.h>

Public Types

using iterator_category = std::input_iterator_tag
using value_type = ValueT
using difference_type = std::ptrdiff_t
using pointer = IterT
using reference = value_type&

Public Member Functions

bool operator== (const IterT &other) const
pointer operator-> () const

Detailed Description

template<typename IterT, typename ValueT>
struct util_intops::util::IteratorCRTP< IterT, ValueT >

Enable compatibility with STL algorithms.

Definition at line 53 of file views.h.

Member Typedef Documentation

◆ difference_type

template<typename IterT, typename ValueT>
using util_intops::util::IteratorCRTP< IterT, ValueT >::difference_type = std::ptrdiff_t

Definition at line 56 of file views.h.

◆ iterator_category

template<typename IterT, typename ValueT>
using util_intops::util::IteratorCRTP< IterT, ValueT >::iterator_category = std::input_iterator_tag

Definition at line 54 of file views.h.

◆ pointer

template<typename IterT, typename ValueT>
using util_intops::util::IteratorCRTP< IterT, ValueT >::pointer = IterT

Definition at line 57 of file views.h.

◆ reference

template<typename IterT, typename ValueT>
using util_intops::util::IteratorCRTP< IterT, ValueT >::reference = value_type&

Definition at line 58 of file views.h.

◆ value_type

template<typename IterT, typename ValueT>
using util_intops::util::IteratorCRTP< IterT, ValueT >::value_type = ValueT

Definition at line 55 of file views.h.

Member Function Documentation

◆ operator->()

template<typename IterT, typename ValueT>
pointer util_intops::util::IteratorCRTP< IterT, ValueT >::operator-> ( ) const
inline

Definition at line 62 of file views.h.

◆ operator==()

template<typename IterT, typename ValueT>
bool util_intops::util::IteratorCRTP< IterT, ValueT >::operator== ( const IterT & other) const
inline

Definition at line 59 of file views.h.


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