Skip to content

Implement P0401R6 Providing Size Feedback In The Allocator Interface#2036

Merged
StephanTLavavej merged 9 commits into
microsoft:mainfrom
AdamBucior:allocate_at_least
Jul 30, 2021
Merged

Implement P0401R6 Providing Size Feedback In The Allocator Interface#2036
StephanTLavavej merged 9 commits into
microsoft:mainfrom
AdamBucior:allocate_at_least

Conversation

@AdamBucior
Copy link
Copy Markdown
Contributor

Fixes #1969.

@AdamBucior AdamBucior requested a review from a team as a code owner July 2, 2021 13:39
Copy link
Copy Markdown
Contributor

@miscco miscco left a comment

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
@StephanTLavavej StephanTLavavej added the cxx23 C++23 feature label Jul 2, 2021
Copy link
Copy Markdown
Contributor

@mnatsuhara mnatsuhara left a comment

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

@StephanTLavavej StephanTLavavej left a comment

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 @mnatsuhara, I pushed trivial changes after you approved.

@StephanTLavavej StephanTLavavej self-assigned this Jul 29, 2021
@StephanTLavavej 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 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