-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Implement P3567R2 flat_meow Fixes
#5882
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
StephanTLavavej
merged 13 commits into
microsoft:feature/flat_map
from
frederick-vs-ja:p3567r2
Dec 1, 2025
Merged
Implement P3567R2 flat_meow Fixes
#5882
StephanTLavavej
merged 13 commits into
microsoft:feature/flat_map
from
frederick-vs-ja:p3567r2
Dec 1, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
With additional condition fixes for `append_range`
fe95990 to
9536d79
Compare
9536d79 to
0593036
Compare
frederick-vs-ja
commented
Nov 19, 2025
…ome constexpr restrictions".
tests/std/tests/P0429R9_flat_map_ms_specific/test.compile.pass.cpp
Outdated
Show resolved
Hide resolved
StephanTLavavej
approved these changes
Dec 1, 2025
Member
|
Thanks for taking care of this paper! 😻 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Towards #2910 and #2912.
Implements Part
swapShould be Conditionallynoexceptinsert_range(sorted_unique, rg), andfrom WG21-P3567R2. Other parts are probably already implemented.
Drive-by changes:
[[msvc::no_unique_address]]toflat_meowin the feature.append_range- we may only rely it when it belongs to some standard containers.Blocked libcxx tests:
std/containers/container.adaptors/flat.map/flat.map.modifiers/swap_free.pass.cpp(testing old, overly strong exception specification)std/containers/container.adaptors/flat.map/flat.map.modifiers/swap_member.pass.cpp(same as above)std/containers/container.adaptors/flat.multimap/flat.multimap.modifiers/swap_free.pass.cpp(same as above)std/containers/container.adaptors/flat.multimap/flat.multimap.modifiers/swap_member.pass.cpp(same as above)std/containers/container.adaptors/flat.multiset/flat.multiset.modifiers/swap_free.pass.cpp(same as above)std/containers/container.adaptors/flat.multiset/flat.multiset.modifiers/swap_member.pass.cpp(same as above)std/containers/container.adaptors/flat.set/flat.set.modifiers/swap_free.pass.cpp(same as above)std/containers/container.adaptors/flat.set/flat.set.modifiers/swap_member.pass.cpp(same as above)std/language.support/support.limits/support.limits.general/flat_map.version.compile.pass.cpp(testing old FTM value)std/language.support/support.limits/support.limits.general/flat_set.version.compile.pass.cpp(same as above)Unblocked libcxx test:
std/containers/container.adaptors/flat.multiset/flat.multiset.modifiers/insert_range.pass.cpp(due to the drive-by fix)std/containers/container.adaptors/flat.set/flat.set.modifiers/insert_range.pass.cpp(same as above; but only for Clang, because MSVC hasn't implemented WG21-P2448R2)