Create a list with the same value as original, using basicAllocator.
Synopsis
Declared in <bslstl_list.h>
list(
list const& original,
ALLOCATOR const& basicAllocator);
Description
This method requires that the (template parameter) VALUE be copy‐insertable into this list (see {Requirements on VALUE}). Note that a bslma::Allocator * can be supplied for basicAllocator if the (template parameter) type ALLOCATOR is bsl::allocator (the default).
Parameters
Name |
Description |
original |
list whose value is copied |
basicAllocator |
allocator used to supply memory |
Created with MrDocs