[#bsl-_Slist_iterator] = xref:bsl.adoc[bsl]::_Slist_iterator :relfileprefix: ../ :mrdocs: Forward iterator over an `slist` of `_Tp` with constness from `_Traits`. == Synopsis Declared in `<bslstp_slist.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class _Tp, class _Traits> struct _Slist_iterator : xref:bsl/_Slist_iterator_base.adoc[_Slist_iterator_base] ---- == Base Classes [cols="1,4"] |=== | Name| Description | `xref:bsl/_Slist_iterator_base.adoc[_Slist_iterator_base]` | Non‐templated base for forward iterators over an slist. |=== == Type Aliases [cols="1,4"] |=== | Name| Description | xref:bsl/_Slist_iterator/_Node.adoc[`_Node`] | Node type holding a `value_type` element. | xref:bsl/_Slist_iterator/_Self.adoc[`_Self`] | This iterator specialization. | xref:bsl/_Slist_iterator/const_iterator.adoc[`const_iterator`] | Const iterator type for this value type. | xref:bsl/_Slist_iterator/difference_type.adoc[`difference_type`] | Signed integral type used for iterator distances. | xref:bsl/_Slist_iterator/iterator.adoc[`iterator`] | Non‐const iterator type for this value type. | xref:bsl/_Slist_iterator/iterator_category.adoc[`iterator_category`] | Iterator category tag identifying a forward iterator. | xref:bsl/_Slist_iterator/pointer.adoc[`pointer`] | Pointer type from the traits. | xref:bsl/_Slist_iterator/reference.adoc[`reference`] | Reference type from the traits. | xref:bsl/_Slist_iterator/size_type.adoc[`size_type`] | Unsigned integral type used for sizes. | xref:bsl/_Slist_iterator/value_type.adoc[`value_type`] | Element type referenced by this iterator. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:bsl/_Slist_iterator/2constructor-06.adoc[`_Slist_iterator`] [.small]#[constructor]# | Constructors | xref:bsl/_Slist_iterator_base/_M_incr.adoc[`_M_incr`] | Advance this iterator to the next node. | xref:bsl/_Slist_iterator/operator_star.adoc[`operator*`] | Return a reference to the element at this position. | xref:bsl/_Slist_iterator/operator_inc-06.adoc[`operator++`] | Increment operators | xref:bsl/_Slist_iterator/operator_ptr.adoc[`operator‐>`] | Return a pointer to the element at this position. | xref:bsl/_Slist_iterator_base/operator_eq.adoc[`operator==`] | Return `true` if both iterators refer to the same node. | xref:bsl/_Slist_iterator_base/operator_not_eq.adoc[`operator!=`] | Return `true` if the iterators refer to different nodes. |=== == Data Members [cols="1,4"] |=== | Name| Description | xref:bsl/_Slist_iterator_base/_M_node.adoc[`_M_node`] | Pointer to the current node, or null for a past‐the‐end iterator. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#