Singly‐linked list container with constant‐time front insertion.
Synopsis
Declared in <bslstp_slist.h>
template<
class _Tp,
class _Alloc = bsl::allocator<_Tp>>
class slist
: protected _Slist_base<_Tp, _Alloc>
Protected Base Classes
Name |
Description |
Allocator‐aware base that owns the sentinel head node of an |
Type Aliases
Name |
Description |
Iterator category tag identifying a forward iterator. |
|
Allocator type used by this list. |
|
Iterator providing non‐modifiable access to elements. |
|
Pointer to a non‐modifiable element. |
|
Reference to a non‐modifiable element. |
|
Signed integral type used for iterator distances. |
|
Iterator providing modifiable access to elements. |
|
Pointer to a modifiable element. |
|
Reference to a modifiable element. |
|
Unsigned integral type used for sizes. |
|
Element type stored in the list. |
Member Functions
Name |
Description |
|
Constructors |
|
Destroy this list and its elements. |
Assign this list to be a copy of the specified list. |
|
|
|
Assign |
|
|
|
|
|
|
|
Remove all elements from this list. |
|
Return |
|
|
|
|
|
|
|
|
|
Return the allocator used by this list. |
|
|
|
|
|
Return an upper bound on the number of elements this list can hold. |
|
|
|
Remove the first element from this list. |
|
|
|
Insert |
|
Erase all elements equal to |
|
Erase every element for which |
|
Resize this list to |
|
Reverse the order of elements in this list. |
|
Return the number of elements in this list. |
|
|
|
|
|
|
|
Exchange the contents of this list with those of the specified list. |
|
|
Protected Type Aliases
Name |
Description |
Allocator type used to allocate |
|
Node type storing an element of type |
|
Allocator type for element values. |
Protected Member Functions
Name |
Description |
|
|
Return the allocator used by this base. |
Protected Data Members
Name |
Description |
Sentinel head proxy holding the allocator and next‐pointer. |
Friends
Name |
Description |
|
Non-Member Functions
Name |
Description |
Return |
|
Return |
|
Return |
|
Return |
|
Return |
|
Return |
Created with MrDocs