Create a list with __n copies of __x using the specified allocator.
Declared in <bslstp_slist.h>
explicit
slist(
size_type __n,
value_type const& __x = _Tp(),
allocator_type const& __a = allocator_type());
| Name | Description |
|---|---|
| __n | number of elements to create |
| __x | value copied into each element |
| __a | allocator used to allocate nodes |