Skip to content

<flat_map>: Pass a tinier value_compare-like comparator to algorithms#6038

Merged
StephanTLavavej merged 1 commit intomicrosoft:feature/flat_mapfrom
frederick-vs-ja:flat-value-comp
Jan 22, 2026
Merged

<flat_map>: Pass a tinier value_compare-like comparator to algorithms#6038
StephanTLavavej merged 1 commit intomicrosoft:feature/flat_mapfrom
frederick-vs-ja:flat-value-comp

Conversation

@frederick-vs-ja
Copy link
Contributor

The _Value_compare_to_pass_in_flat_map wrapper will be returned as-is when passed to _Pass_fn, and thus reduces calling layers in some circumstances.

Also, _Value_compare_to_pass_in_flat_map is as least templated as possible, which possibly saves throughput.

The `_Value_compare_to_pass_in_flat_map` wrapper will be returned as-is
when passed to `_Pass_fn`, and thus reduces calling layers in some
circumstances.

Also, `_Value_compare_to_pass_in_flat_map` is as least
templated as possible, which possibly saves throughput.
@frederick-vs-ja frederick-vs-ja requested a review from a team as a code owner January 22, 2026 08:57
@github-project-automation github-project-automation bot moved this to Initial Review in STL Code Reviews Jan 22, 2026
@StephanTLavavej StephanTLavavej added performance Must go faster flat_meow C++23 container adaptors labels Jan 22, 2026
@StephanTLavavej StephanTLavavej merged commit 8c5ec8d into microsoft:feature/flat_map Jan 22, 2026
45 checks passed
@github-project-automation github-project-automation bot moved this from Initial Review to Done in STL Code Reviews Jan 22, 2026
@StephanTLavavej
Copy link
Member

Excellent, thank you!!!

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

Labels

flat_meow C++23 container adaptors performance Must go faster

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants