Skip to content

<flat_set>: flat_set::emplace and emplace_hint should be constrained. - #5999

Merged
Stephan T. Lavavej (StephanTLavavej) merged 1 commit into
microsoft:feature/flat_mapfrom
vmichal:constraints-check-flat-meow
Jan 8, 2026
Merged

<flat_set>: flat_set::emplace and emplace_hint should be constrained.#5999
Stephan T. Lavavej (StephanTLavavej) merged 1 commit into
microsoft:feature/flat_mapfrom
vmichal:constraints-check-flat-meow

Conversation

@vmichal

Copy link
Copy Markdown
Contributor

According to [flat.multiset.modifiers], emplace should be constrained with is_constructible_v<value_type, _Args...>. Similarly for emplace_hint (suggested by https://eel.is/c++draft/associative.reqmts#general-48, I suppose).

@vmichal
Vojtěch Michal (vmichal) requested a review from a team as a code owner January 8, 2026 00:31
@github-project-automation github-project-automation Bot moved this to Initial Review in STL Code Reviews Jan 8, 2026
@StephanTLavavej Stephan T. Lavavej (StephanTLavavej) added bug Something isn't working flat_meow C++23 container adaptors labels Jan 8, 2026
@StephanTLavavej
Stephan T. Lavavej (StephanTLavavej) merged commit 8aba27d into microsoft:feature/flat_map Jan 8, 2026
45 checks passed
@github-project-automation github-project-automation Bot moved this from Initial Review to Done in STL Code Reviews Jan 8, 2026
@StephanTLavavej

Copy link
Copy Markdown
Member

😻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working flat_meow C++23 container adaptors

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants