bn::intrusive_forward_list::const_iterator class

Const iterator.

Public types

using value_type = intrusive_forward_list::value_type
Value type alias.
using size_type = intrusive_forward_list::size_type
Size type alias.
using difference_type = intrusive_forward_list::difference_type
Difference type alias.
using reference = intrusive_forward_list::reference
Reference alias.
using const_reference = intrusive_forward_list::const_reference
Const reference alias.
using pointer = intrusive_forward_list::pointer
Pointer alias.
using const_pointer = intrusive_forward_list::const_pointer
Const pointer alias.
using iterator_category = forward_iterator_tag
Iterator category alias.

Constructors, destructors, conversion operators

const_iterator(iterator it)
Public constructor.

Public functions

auto operator++() -> const_iterator&
Increments the position.
auto operator*() const -> const_reference
Returns a const reference to the pointed value.
auto operator->() const -> const_pointer
Returns a const pointer to the pointed value.


auto operator==(const const_iterator& a, const const_iterator& b) -> bool defaulted
Default equal operator.

Function documentation

bn::intrusive_forward_list::const_iterator::const_iterator(iterator it)

Public constructor.

it Non const iterator.

const_iterator& bn::intrusive_forward_list::const_iterator::operator++()

Increments the position.

Returns Reference to this.