Skip to content
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

<flat_map>: Fix overloads and complete deduction guides and erase_if, with cleanups #4337

Conversation

frederick-vs-ja
Copy link
Contributor

@frederick-vs-ja frederick-vs-ja commented Jan 22, 2024

Towards #2910.

Feature completion:

  • Deduction guides of flat_multimap (with those of flat_map corrected).
  • erase_if.

Correction:

  • Overloads of some functions.
  • Moving flat_map-specific functions (at etc.) to the derived class body.
  • _Uglification of internal names.

Cleanups:

Enhancements:

  • SCARY iterators.

TODO (in following PRs):

  • Correcting some function bodies.
  • Completing tests.
  • Optimization of emplace and its friends.

- Consistently use `_UglyCamelCase` for template arguments.
- Consistently use `_Ugly_snake_case` for other stuffs.
- Consistently use `_Meow_provider` for SCARY & ADL-proof layers.
- Replace `_X`, `_K` etc. and a non-_Uglified `R`.
- Replace `_Paring_meow` with `_Pairing_meow`
- Get rid of `&=` on `bool`.
- Make comparison operator defaulted as possible.
And replace the non-uglified name `Allocator` with `_Allocator`
@frederick-vs-ja frederick-vs-ja requested a review from a team as a code owner January 22, 2024 23:27
@StephanTLavavej StephanTLavavej added the flat_meow C++23 container adaptors label Jan 22, 2024
@frederick-vs-ja frederick-vs-ja changed the title <flat_map>: Fix of overloads, complete deduction guides and erase_if, with cleanups <flat_map>: Fix overloads and complete deduction guides and erase_if, with cleanups Jan 23, 2024
@StephanTLavavej StephanTLavavej self-assigned this Jan 23, 2024
stl/inc/flat_map Show resolved Hide resolved
stl/inc/flat_map Show resolved Hide resolved
stl/inc/flat_map Show resolved Hide resolved
stl/inc/flat_map Show resolved Hide resolved
stl/inc/flat_map Show resolved Hide resolved
stl/inc/flat_map Show resolved Hide resolved
stl/inc/flat_map Show resolved Hide resolved
stl/inc/flat_map Show resolved Hide resolved
stl/inc/flat_map Show resolved Hide resolved
tests/std/tests/P0429R9_flat_map/test.cpp Show resolved Hide resolved
@StephanTLavavej StephanTLavavej merged commit 00c2324 into microsoft:feature/flat_map Jan 25, 2024
35 checks passed
@StephanTLavavej
Copy link
Member

Thanks! I have a bunch of comments for followup, but nothing that blocked merging. 😻

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants