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