bn::intrusive_forward_list::iterator class

Non 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 pointer = intrusive_forward_list::pointer
Pointer alias.
using iterator_category = forward_iterator_tag
Iterator category alias.

Constructors, destructors, conversion operators

iterator() defaulted
Default constructor.
iterator(node_type* node) explicit
Constructor.

Public functions

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

Friends

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

Function documentation

bn::intrusive_forward_list::iterator::iterator(node_type* node) explicit

Constructor.

Parameters
node Intrusive forward list node.

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

Increments the position.

Returns Reference to this.

iterator bn::intrusive_forward_list::iterator::operator++(int)

Increments the position.

Returns The iterator before being incremented.