class
#include <bn_intrusive_forward_list.h>
const_iterator 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::
const_reference - Reference alias.
-
using pointer = intrusive_forward_list::
const_pointer - Pointer alias.
- using iterator_category = forward_iterator_tag
- Iterator category alias.
Constructors, destructors, conversion operators
- const_iterator() defaulted
- Default class constructor.
-
const_iterator(const node_
type* node) explicit - Class constructor.
- const_iterator(iterator it)
- Public constructor.
Public functions
-
auto operator++() -> const_
iterator& - Increments the position.
-
auto operator++(int) -> 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.
Friends
-
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(const node_ type* node) explicit
Class constructor.
Parameters | |
---|---|
node | Intrusive forward list node. |
bn:: intrusive_forward_list:: const_iterator:: const_iterator(iterator it)
Public constructor.
Parameters | |
---|---|
it | Non const iterator. |
const_ iterator& bn:: intrusive_forward_list:: const_iterator:: operator++()
Increments the position.
Returns | Reference to this. |
---|
const_ iterator bn:: intrusive_forward_list:: const_iterator:: operator++(int)
Increments the position.
Returns | The iterator before being incremented. |
---|