MySQL 9.6.0
Source Code Documentation
mysql::iterators::Empty_sequence_iterator< Value_tp > Class Template Reference

Iterator over an empty sequence. More...

#include <empty_sequence_iterator.h>

Inheritance diagram for mysql::iterators::Empty_sequence_iterator< Value_tp >:
[legend]

Public Types

using Value_t = Value_tp
 

Public Member Functions

constexpr Value_t get () const
 
constexpr void advance (std::ptrdiff_t)
 
constexpr std::ptrdiff_t distance_from (const Empty_sequence_iterator &) const
 
constexpr std::ptrdiff_t distance_from_sentinel () const
 
- Public Member Functions inherited from mysql::iterators::Iterator_interface< Empty_sequence_iterator< Value_tp > >
decltype(auto) operator* () const
 Dereference operator, which returns the current value. More...
 
auto operator-> () const
 Arrow operator, return a pointer (possibly a fancy pointer) to the current element. More...
 
Self_toperator++ ()
 Pre-increment operator, which advances the position one step and returns a reference to the iterator itself. More...
 
auto operator++ (int)
 Post-increment operator, which advances the position one step. More...
 
Self_toperator-- ()
 Pre-decrement iterator, which moves one step back and returns a reference to the iterator itself. More...
 
auto operator-- (int)
 Post-decrement operator, which moves one step back and returns a copy of the iterator before the decrement. More...
 
Self_toperator+= (std::ptrdiff_t delta)
 Addition assignment operator, which moves the iterator forward by the given number of steps, and returns a reference to the iterator itself. More...
 
Self_toperator-= (std::ptrdiff_t delta)
 Subtraction assignment operator, which moves the iterator backward by the given number of steps, and returns a reference to the iterator itself. More...
 
Self_t operator+ (std::ptrdiff_t delta) const
 Addition operator, which returns a new iterator that is the given number of steps ahead of the current iterator. More...
 
Self_t operator- (std::ptrdiff_t delta) const
 Subtraction-of-integer operator, which returns a new iterator that is the given number of steps behind of the current iterator. More...
 
std::ptrdiff_t operator- (const Self_t &other) const
 Subtraction-of-iterator operator, which returns the number of steps from other this. More...
 
decltype(auto) operator[] (std::ptrdiff_t delta) const
 Subscript operator, which returns a new iterator that is the given number of steps ahead of the current iterator. More...
 

Additional Inherited Members

- Protected Types inherited from mysql::iterators::Iterator_interface< Empty_sequence_iterator< Value_tp > >
using Self_t = Empty_sequence_iterator< Value_tp >
 

Detailed Description

template<class Value_tp>
class mysql::iterators::Empty_sequence_iterator< Value_tp >

Iterator over an empty sequence.

Template Parameters
Value_tpType of values returned from the iterator. Although no values are returned, this is required in order to define the return type for the dereference iterator.

Member Typedef Documentation

◆ Value_t

template<class Value_tp >
using mysql::iterators::Empty_sequence_iterator< Value_tp >::Value_t = Value_tp

Member Function Documentation

◆ advance()

template<class Value_tp >
constexpr void mysql::iterators::Empty_sequence_iterator< Value_tp >::advance ( std::ptrdiff_t  )
inlineconstexpr

◆ distance_from()

template<class Value_tp >
constexpr std::ptrdiff_t mysql::iterators::Empty_sequence_iterator< Value_tp >::distance_from ( const Empty_sequence_iterator< Value_tp > &  ) const
inlineconstexpr

◆ distance_from_sentinel()

template<class Value_tp >
constexpr std::ptrdiff_t mysql::iterators::Empty_sequence_iterator< Value_tp >::distance_from_sentinel ( ) const
inlineconstexpr

◆ get()

template<class Value_tp >
constexpr Value_t mysql::iterators::Empty_sequence_iterator< Value_tp >::get ( ) const
inlineconstexpr

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