Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Wow ...

34 views
Skip to first unread message

Bonita Montero

unread,
Nov 4, 2021, 6:36:10 AM11/4/21
to
C++23 becomes allocator<*>::allocate_at_least:
https://en.cppreference.com/w/cpp/memory/allocator/allocate_at_least
It returns sth. like a pair with T * and size-t from which a container
could see how much memory is actually to adjust its actual size-parame-
ter. That's especially good for alloctos which have size classes that
aren't linear for small sizes but a power of two.

Chris M. Thomasson

unread,
May 9, 2022, 5:19:21 PM5/9/22
to
Nice. For some reason it kind of reminds me of a region allocator I did
a while back:

https://groups.google.com/g/comp.lang.c/c/7oaJFWKVCTw/m/sSWYU9BUS_QJ

https://pastebin.com/raw/f37a23918

0 new messages