Files
2025-10-25 03:02:53 +03:00

3.1 KiB
Raw Permalink Blame History

[queue.cons.alloc]

23 Containers library [containers]

23.6 Container adaptors [container.adaptors]

23.6.3 Class template queue [queue]

23.6.3.3 Constructors with allocators [queue.cons.alloc]

1

#

If uses_allocator_v<container_type, Alloc> is false the constructors in this subclause shall not participate in overload resolution.

🔗

template<class Alloc> constexpr explicit queue(const Alloc& a);

2

#

Effects: Initializes c with a.

🔗

template<class Alloc> constexpr queue(const container_type& cont, const Alloc& a);

3

#

Effects: Initializes c with cont as the first argument and a as the second argument.

🔗

template<class Alloc> constexpr queue(container_type&& cont, const Alloc& a);

4

#

Effects: Initializes c with std::move(cont) as the first argument and a as the second argument.

🔗

template<class Alloc> constexpr queue(const queue& q, const Alloc& a);

5

#

Effects: Initializes c with q.c as the first argument and a as the second argument.

🔗

template<class Alloc> constexpr queue(queue&& q, const Alloc& a);

6

#

Effects: Initializes c with std::move(q.c) as the first argument and a as the second argument.

🔗

template<class InputIterator, class Alloc> constexpr queue(InputIterator first, InputIterator last, const Alloc& alloc);

7

#

Effects: Initializes c withfirst as the first argument,last as the second argument, andalloc as the third argument.

🔗

template<[container-compatible-range](container.intro.reqmts#concept:container-compatible-range "23.2.2.1Introduction[container.intro.reqmts]")<T> R, class Alloc> constexpr queue(from_range_t, R&& rg, const Alloc& a);

8

#

Effects: Initializes c withranges::to(std::forward(rg), a).