Create an empty vector that uses the specified basicAllocator.
Synopsis
Declared in <bslstl_vector.h>
explicit
vector(ALLOCATOR const& basicAllocator) noexcept;
Description
Create an empty vector. Optionally specify a basicAllocator used to supply memory. If basicAllocator is not specified, a default‐constructed object of the (template parameter) type ALLOCATOR is used. If the type ALLOCATOR is bsl::allocator and basicAllocator is not supplied, the currently installed default allocator is used. Note that a bslma::Allocator * can be supplied for basicAllocator if the type ALLOCATOR is bsl::allocator (the default).
Parameters
Name |
Description |
basicAllocator |
allocator used to supply memory |
Created with MrDocs