openMSX
Public Types | Public Member Functions | Friends | List of all members
view::detail::TakeIterator< Iterator, Sentinel > Class Template Reference

#include <view.hh>

Public Types

using value_type = typename std::iterator_traits< Iterator >::value_type
 
using difference_type = typename std::iterator_traits< Iterator >::difference_type
 

Public Member Functions

constexpr TakeIterator (Iterator it_, size_t n_)
 
constexpr auto operator* () const
 
constexpr TakeIteratoroperator++ ()
 
constexpr TakeIterator operator++ (int)
 

Friends

constexpr friend bool operator== (const TakeIterator &x, const TakeIterator &y)
 
constexpr friend bool operator== (const TakeIterator &x, const Sentinel &y)
 

Detailed Description

template<typename Iterator, typename Sentinel>
class view::detail::TakeIterator< Iterator, Sentinel >

Definition at line 360 of file view.hh.

Member Typedef Documentation

◆ difference_type

template<typename Iterator , typename Sentinel >
using view::detail::TakeIterator< Iterator, Sentinel >::difference_type = typename std::iterator_traits<Iterator>::difference_type

Definition at line 364 of file view.hh.

◆ value_type

template<typename Iterator , typename Sentinel >
using view::detail::TakeIterator< Iterator, Sentinel >::value_type = typename std::iterator_traits<Iterator>::value_type

Definition at line 363 of file view.hh.

Constructor & Destructor Documentation

◆ TakeIterator()

template<typename Iterator , typename Sentinel >
constexpr view::detail::TakeIterator< Iterator, Sentinel >::TakeIterator ( Iterator  it_,
size_t  n_ 
)
inlineconstexpr

Definition at line 367 of file view.hh.

Member Function Documentation

◆ operator*()

template<typename Iterator , typename Sentinel >
constexpr auto view::detail::TakeIterator< Iterator, Sentinel >::operator* ( ) const
inlineconstexpr

Definition at line 370 of file view.hh.

◆ operator++() [1/2]

template<typename Iterator , typename Sentinel >
constexpr TakeIterator & view::detail::TakeIterator< Iterator, Sentinel >::operator++ ( )
inlineconstexpr

Definition at line 372 of file view.hh.

◆ operator++() [2/2]

template<typename Iterator , typename Sentinel >
constexpr TakeIterator view::detail::TakeIterator< Iterator, Sentinel >::operator++ ( int  )
inlineconstexpr

Definition at line 378 of file view.hh.

Friends And Related Symbol Documentation

◆ operator== [1/2]

template<typename Iterator , typename Sentinel >
constexpr friend bool operator== ( const TakeIterator< Iterator, Sentinel > &  x,
const Sentinel &  y 
)
friend

Definition at line 388 of file view.hh.

◆ operator== [2/2]

template<typename Iterator , typename Sentinel >
constexpr friend bool operator== ( const TakeIterator< Iterator, Sentinel > &  x,
const TakeIterator< Iterator, Sentinel > &  y 
)
friend

Definition at line 385 of file view.hh.


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