Create a list of the specified numElements size whose every element is default‐constructed. A default‐constructed object of the (template parameter) type ALLOCATOR is used. If the type ALLOCATOR is bsl::allocator, the currently installed default allocator is used. Throw bsl::length_error if numElements > max_size(). This method requires that the (template parameter) VALUE be default‐insertable into this list (see {Requirements on VALUE}).
Synopsis
Declared in <bslstl_list.h>
explicit
list(size_type numElements);
Created with MrDocs