Forward iterator over an slist of _Tp with constness from _Traits.
Declared in <bslstp_slist.h>
template<
class _Tp,
class _Traits>
struct _Slist_iterator
: _Slist_iterator_base
| Name | Description |
|---|---|
_Slist_iterator_base | Non-templated base for forward iterators over an slist. |
| Name | Description |
|---|---|
_Node | Node type holding a value_type element. |
_Self | This iterator specialization. |
const_iterator | Const iterator type for this value type. |
difference_type | Signed integral type used for iterator distances. |
iterator | Non-const iterator type for this value type. |
iterator_category | Iterator category tag identifying a forward iterator. |
pointer | Pointer type from the traits. |
reference | Reference type from the traits. |
size_type | Unsigned integral type used for sizes. |
value_type | Element type referenced by this iterator. |
| Name | Description |
|---|---|
_Slist_iterator [constructor] | Constructors |
_M_incr | Advance this iterator to the next node. |
operator* | Return a reference to the element at this position. |
operator++ | Increment operators |
operator-> | Return a pointer to the element at this position. |
operator== | Return true if both iterators refer to the same node. |
operator!= | Return true if the iterators refer to different nodes. |
| Name | Description |
|---|---|
_M_node | Pointer to the current node, or null for a past-the-end iterator. |