libhatchet
Loading...
Searching...
No Matches
hxconstexpr_list< T, deleter_t_ >::const_iterator Class Reference

#include <hxconstexpr_list.hpp>

Public Member Functions

constexpr const_iterator (void)
constexpr const_iteratoroperator++ (void)
constexpr const_iterator operator++ (int)
constexpr const_iteratoroperator-- (void)
constexpr const_iterator operator-- (int)
constexpr bool operator== (const const_iterator &x_) const
constexpr const T & operator* (void) const
constexpr const T * operator-> (void) const

Detailed Description

template<typename T, typename deleter_t_ = hxdefault_delete>
class hxconstexpr_list< T, deleter_t_ >::const_iterator

const_iterator - Bidirectional iterator over const nodes.

Constructor & Destructor Documentation

◆ const_iterator()

template<typename T, typename deleter_t_ = hxdefault_delete>
hxconstexpr_list< T, deleter_t_ >::const_iterator::const_iterator ( void )
inlineconstexpr

Constructs an iterator that must not be incremented or dereferenced.

Member Function Documentation

◆ operator*()

template<typename T, typename deleter_t_ = hxdefault_delete>
const T & hxconstexpr_list< T, deleter_t_ >::const_iterator::operator* ( void ) const
inlineconstexpr

Returns a const reference to the current node.

◆ operator++() [1/2]

template<typename T, typename deleter_t_ = hxdefault_delete>
const_iterator hxconstexpr_list< T, deleter_t_ >::const_iterator::operator++ ( int )
constexpr

Post-increment: advances to the next node and returns the prior position.

◆ operator++() [2/2]

template<typename T, typename deleter_t_ = hxdefault_delete>
const_iterator & hxconstexpr_list< T, deleter_t_ >::const_iterator::operator++ ( void )
constexpr

Advances to the next node and returns this iterator.

◆ operator--() [1/2]

template<typename T, typename deleter_t_ = hxdefault_delete>
const_iterator hxconstexpr_list< T, deleter_t_ >::const_iterator::operator-- ( int )
constexpr

Post-decrement: retreats to the previous node and returns the prior position.

◆ operator--() [2/2]

template<typename T, typename deleter_t_ = hxdefault_delete>
const_iterator & hxconstexpr_list< T, deleter_t_ >::const_iterator::operator-- ( void )
constexpr

Retreats to the previous node and returns this iterator.

◆ operator->()

template<typename T, typename deleter_t_ = hxdefault_delete>
const T * hxconstexpr_list< T, deleter_t_ >::const_iterator::operator-> ( void ) const
inlineconstexpr

Returns a const pointer to the current node.

◆ operator==()

template<typename T, typename deleter_t_ = hxdefault_delete>
bool hxconstexpr_list< T, deleter_t_ >::const_iterator::operator== ( const const_iterator & x_) const
constexpr

Returns true if both iterators point to the same node.

  • x : The iterator to compare against.

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