[#bsl-_Slist_base] = xref:bsl.adoc[bsl]::_Slist_base :relfileprefix: ../ :mrdocs: Allocator‐aware base that owns the sentinel head node of an `slist`. == Synopsis Declared in `<bslstp_slist.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class _Tp, class _Alloc> struct _Slist_base; ---- == Type Aliases [cols="1,4"] |=== | Name| Description | xref:bsl/_Slist_base/_Node.adoc[`_Node`] | Node type storing an element of type `_Tp`. | xref:bsl/_Slist_base/allocator_type.adoc[`allocator_type`] | Allocator type for element values. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:bsl/_Slist_base/2constructor.adoc[`_Slist_base`] [.small]#[constructor]# | Create an empty base using the specified allocator. | xref:bsl/_Slist_base/2destructor.adoc[`~_Slist_base`] [.small]#[destructor]# | Destroy all nodes owned by this base. | xref:bsl/_Slist_base/get_allocator.adoc[`get_allocator`] | Return the allocator used by this base. |=== == Data Members [cols="1,4"] |=== | Name| Description | xref:bsl/_Slist_base/_M_head.adoc[`_M_head`] | Sentinel head proxy holding the allocator and next‐pointer. |=== == Protected Type Aliases [cols="1,4"] |=== | Name| Description | xref:bsl/_Slist_base/_M_node_allocator_type.adoc[`_M_node_allocator_type`] | Allocator type used to allocate `_Node` objects. |=== == Protected Member Functions [cols="1,4"] |=== | Name| Description | xref:bsl/_Slist_base/_M_erase_after-08.adoc[`_M_erase_after`] | `_M_erase_after` overloads |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#