Skip to content

Implement P0401R6 Providing Size Feedback In The Allocator Interface - #2036

Merged
Stephan T. Lavavej (StephanTLavavej) merged 9 commits into
microsoft:mainfrom
AdamBucior:allocate_at_least
Jul 30, 2021
Merged

Stephan T. Lavavej (StephanTLavavej) merged 9 commits into
microsoft:mainfrom
AdamBucior:allocate_at_least

Conversation

@AdamBucior

Copy link
Copy Markdown
Contributor

Fixes #1969.

@AdamBucior
Adam Bucior (AdamBucior) requested a review from a team as a code owner July 2, 2021 13:39

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall this already looks good. There are some issues though:

  • We need more test coverage for exotic / strange allocators
  • We are missing the feature test macro __cpp_lib_allocate_at_least and the corresponding tests

Comment thread stl/inc/xmemory Outdated
Comment thread stl/inc/xmemory
Comment thread tests/std/tests/P0401R6_allocate_at_least/test.cpp
Comment thread tests/std/tests/P0401R6_allocate_at_least/test.cpp
Comment thread stl/inc/xmemory
Comment thread tests/std/tests/P0401R6_allocate_at_least/test.cpp
Comment thread tests/std/tests/P0401R6_allocate_at_least/test.cpp Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! Thanks for implementing this C++23 feature 😸

Comment thread stl/inc/xmemory Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, I'll push trivial comment/header changes.

Comment thread tests/std/tests/VSO_0000000_fancy_pointers/test.compile.pass.cpp Outdated
Comment thread tests/std/tests/P0401R6_allocate_at_least/test.cpp
@StephanTLavavej

Copy link
Copy Markdown
Member

FYI Miya Natsuhara (@mnatsuhara), I pushed trivial changes after you approved.

@StephanTLavavej
Stephan T. Lavavej (StephanTLavavej) merged commit 8ebfaf8 into microsoft:main Jul 30, 2021
@StephanTLavavej

Copy link
Copy Markdown
Member

Thanks for implementing another C++23 feature! This will ship in VS 2022 17.0 Preview 4. 🎉 😺 😻

@AdamBucior
Adam Bucior (AdamBucior) deleted the allocate_at_least branch July 30, 2021 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cxx23 C++23 feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

P0401R6 Providing Size Feedback In The Allocator Interface

4 participants