https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118030
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Nathan Myers <[email protected]>: https://gcc.gnu.org/g:02926c0abb71e21123ccb3f6de1a8b48244aaa7d commit r16-7986-g02926c0abb71e21123ccb3f6de1a8b48244aaa7d Author: Nathan Myers <[email protected]> Date: Thu Mar 5 08:54:09 2026 -0500 libstdc++: Add allocate_at_least (P0401) [PR118030] Implement proposals adopted for C++23: P0401R6, "Providing size feedback in the Allocator interface" P2652R2, "Disallow User Specialization of allocator_traits". This is the minimal conforming implementation, i.e. without the useful parts. Useful parts, to come in future patches, would include giving access to any extra storage reserved, and use of it in vector, string, and other contiguous containers. libstdc++-v3/ChangeLog: PR libstdc++/118030 * include/bits/alloc_traits.h (allocate_at_least (2x)): Define. * include/bits/allocator.h (allocate_at_least): Define. * include/std/memory (__glibcxx_want_allocate_at_least): Define. * include/bits/memoryfwd.h (allocation_result): Define, #include <bits/version.h> first so that will work. * include/bits/version.def (allocate_at_least): Add. * include/bits/version.h: Regenerate. * testsuite/20_util/allocator/allocate_at_least.cc: New test. * testsuite/20_util/allocator/allocate_at_least_neg.cc: New test.
