Create a stack from the elements of the specified range.
Synopsis
Declared in <bslstl_stack.h>
template<class t_RANGE>
stack(
std::from_range_t tag,
t_RANGE&& range);
Description
Create a stack from the elements of the specifed range. Optionally specify an allocator used to supply memory. If allocator is not specified, a default‐constructed object of the (template parameter) type t_ALLOCATOR is used. Note that range must meet the requirements of an input range and the values from range must have a type matching or convertible to (template parameter) VALUE.
Parameters
Name |
Description |
tag |
disambiguation tag for range construction |
range |
range of elements used to initialize this stack |
Created with MrDocs