Create an empty stack using the specified basicAllocator.
Declared in <bslstl_stack.h>
template<class ALLOCATOR>
explicit
stack(ALLOCATOR const& basicAllocator)
requires bsl::uses_allocator<CONTAINER, ALLOCATOR>::value;
Create an empty stack, and use the specified basicAllocator to supply memory. If CONTAINER::allocator_type does not exist, this constructor may not be used.
| Name | Description |
|---|---|
| basicAllocator | allocator used to supply memory |