1.6 KiB
1.6 KiB
[stack.cons]
23 Containers library [containers]
23.6 Container adaptors [container.adaptors]
23.6.6 Class template stack [stack]
23.6.6.3 Constructors [stack.cons]
constexpr explicit stack(const Container& cont);
Effects: Initializes c with cont.
constexpr explicit stack(Container&& cont);
Effects: Initializes c with std::move(cont).
template<class InputIterator> constexpr stack(InputIterator first, InputIterator last);
Effects: Initializes c withfirst as the first argument and last as the second argument.
template<[container-compatible-range](container.intro.reqmts#concept:container-compatible-range "23.2.2.1 Introduction [container.intro.reqmts]")<T> R> constexpr stack(from_range_t, R&& rg);
Effects: Initializes c with ranges::to(std::forward(rg)).