number_iterator< T > Struct Template Reference

Public Types

using difference_type = T
 
using iterator_category = ::std::bidirectional_iterator_tag
 
using pointer = add_pointer_t< T >
 
using reference = add_lvalue_reference_t< T >
 
using value_type = T
 

Public Member Functions

 number_iterator (value_type value, value_type step=1) noexcept
 
 number_iterator (number_iterator const &) noexcept=default
 
 number_iterator () noexcept=default
 
 ~number_iterator () noexcept=default
 
bool operator!= (number_iterator const &that) const noexcept
 
reference operator* () noexcept
 
number_iteratoroperator++ () noexcept
 
number_iterator operator++ (int) const noexcept
 
number_iteratoroperator-- () noexcept
 
number_iterator operator-- (int) const noexcept
 
number_iteratoroperator= (number_iterator const &) noexcept=default
 
bool operator== (number_iterator const &that) const noexcept
 
void swap (number_iterator &that) noexcept
 

Detailed Description


template
<
class
T
>

struct core::v2::number_iterator< T >

Definition at line 186 of file iterator.hpp.

Member Typedef Documentation

◆ difference_type

using difference_type = T

Definition at line 188 of file iterator.hpp.

◆ iterator_category

using iterator_category = ::std::bidirectional_iterator_tag

Definition at line 187 of file iterator.hpp.

◆ pointer

using pointer = add_pointer_t<T>

Definition at line 191 of file iterator.hpp.

◆ reference

Definition at line 190 of file iterator.hpp.

◆ value_type

using value_type = T

Definition at line 189 of file iterator.hpp.

Constructor & Destructor Documentation

◆ number_iterator() [1/3]

number_iterator ( value_type  value,
value_type  step = 1 
)
inlineexplicitnoexcept

◆ number_iterator() [2/3]

number_iterator ( number_iterator< T > const &  )
defaultnoexcept

◆ number_iterator() [3/3]

number_iterator ( )
defaultnoexcept

◆ ~number_iterator()

~number_iterator ( )
defaultnoexcept

Member Function Documentation

◆ operator!=()

bool operator!= ( number_iterator< T > const &  that) const
inlinenoexcept

Definition at line 235 of file iterator.hpp.

◆ operator*()

reference operator* ( )
inlinenoexcept

Definition at line 211 of file iterator.hpp.

◆ operator++() [1/2]

number_iterator& operator++ ( )
inlinenoexcept

Definition at line 213 of file iterator.hpp.

◆ operator++() [2/2]

number_iterator operator++ ( int  ) const
inlinenoexcept

Definition at line 223 of file iterator.hpp.

◆ operator--() [1/2]

number_iterator& operator-- ( )
inlinenoexcept

Definition at line 218 of file iterator.hpp.

◆ operator--() [2/2]

number_iterator operator-- ( int  ) const
inlinenoexcept

Definition at line 227 of file iterator.hpp.

◆ operator=()

number_iterator& operator= ( number_iterator< T > const &  )
defaultnoexcept

◆ operator==()

bool operator== ( number_iterator< T > const &  that) const
inlinenoexcept

Definition at line 231 of file iterator.hpp.

◆ swap()

void swap ( number_iterator< T > &  that)
inlinenoexcept

Definition at line 206 of file iterator.hpp.

References core::v2::swap().


The documentation for this struct was generated from the following file:
  • /home/jenkins-mlpack/mlpack.org/_src/mlpack-git/src/mlpack/core/std_backport/iterator.hpp