Non‐templated base for forward iterators over an slist.

Synopsis

Declared in <bslstp_slist.h>

struct _Slist_iterator_base;

Type Aliases

Name

Description

difference_type

Signed integral type used for iterator distances.

iterator_category

Iterator category tag identifying a forward iterator.

size_type

Unsigned integral type used for sizes.

Member Functions

Name

Description

_Slist_iterator_base [constructor]

Create an iterator referring to the specified node.

_M_incr

Advance this iterator to the next node.

operator==

Return true if both iterators refer to the same node.

operator!=

Return true if the iterators refer to different nodes.

Data Members

Name

Description

_M_node

Pointer to the current node, or null for a past‐the‐end iterator.

Derived Classes

Name

Description

_Slist_iterator

Forward iterator over an slist of _Tp with constness from _Traits.

Created with MrDocs