C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Proposal interest: constexpr std::static_unordered_set<T, N>

From: Jens Maurer <jens.maurer_at_[hidden]>
Date: Wed, 15 Apr 2026 21:19:20 +0200
On 4/15/26 19:39, Jonathan Wakely via Std-Proposals wrote:
> Can't you do this in C++26?
> constexpr std::unordered_set<E> set({x, y, z});

How would that persist the dynamically-allocated slots array from
compile-time to runtime? I thought that was an unsolved problem.

Jens

Received on 2026-04-15 19:19:23