bsl::_Slist_base

Allocator-aware base that owns the sentinel head node of an slist.

Synopsis

Declared in <bslstp_slist.h>

template<
    class _Tp,
    class _Alloc>
struct _Slist_base;

Type Aliases

NameDescription
_Node Node type storing an element of type _Tp.
allocator_type Allocator type for element values.

Member Functions

NameDescription
_Slist_base [constructor]Create an empty base using the specified allocator.
~_Slist_base [destructor]Destroy all nodes owned by this base.
get_allocator Return the allocator used by this base.

Data Members

NameDescription
_M_head Sentinel head proxy holding the allocator and next-pointer.

Protected Type Aliases

NameDescription
_M_node_allocator_type Allocator type used to allocate _Node objects.

Protected Member Functions

NameDescription
_M_erase_after _M_erase_after overloads