Create a stack by moving from original using basicAllocator.
Declared in <bslstl_stack.h>
template<class ALLOCATOR>
stack(
BloombergLP::bslmf::MovableRef<stack> original,
ALLOCATOR const& basicAllocator)
requires bsl::uses_allocator<CONTAINER, ALLOCATOR>::value;
Create a stack having the value of the specified original (on entry) that uses basicAllocator to supply memory by using the allocator-extended moved constructor of CONTAINER. original is left in a valid but unspecified state. Note that a bslma::Allocator * can be supplied for basicAllocator if the (template parameter) ALLOCATOR is bsl::allocator (the default). Also note that this method assumes that CONTAINER has a move constructor. Also note that if CONTAINER::allocator_type does not exist, this constructor may not be used.
| Name | Description |
|---|---|
| original | stack to move from |
| basicAllocator | allocator used to supply memory |