Create a list as a copy of __x using the specified allocator.

Synopsis

Declared in <bslstp_slist.h>

slist(
    _Self const& __x,
    allocator_type const& __a);

Parameters

Name

Description

__x

list whose elements are copied

__a

allocator used to allocate nodes

Created with MrDocs