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

Name

Description

_Node

Node type storing an element of type _Tp.

allocator_type

Allocator type for element values.

Member Functions

Name

Description

_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

Name

Description

_M_head

Sentinel head proxy holding the allocator and next‐pointer.

Protected Type Aliases

Name

Description

_M_node_allocator_type

Allocator type used to allocate _Node objects.

Protected Member Functions

Name

Description

_M_erase_after

_M_erase_after overloads

Created with MrDocs