Date: Thu, 20 Feb 2025 12:16:08 +0000
On Thu, 20 Feb 2025 at 11:46, Matthew Satti via Std-Proposals <
std-proposals_at_[hidden]> wrote:
> Hi there,
>
> I was wondering about adding std::initializer_list constructor overloads
> for std::queue, std::stack, and std::priority_queue. Has there been any
> proposals regarding this?
>
It already works with an extra pair of parens:
std::stack<int> s({1,2,3,4});
This matches the stack(Container&&) constructor.
std-proposals_at_[hidden]> wrote:
> Hi there,
>
> I was wondering about adding std::initializer_list constructor overloads
> for std::queue, std::stack, and std::priority_queue. Has there been any
> proposals regarding this?
>
It already works with an extra pair of parens:
std::stack<int> s({1,2,3,4});
This matches the stack(Container&&) constructor.
Received on 2025-02-20 12:16:24