• Wow ...

    From Bonita Montero@21:1/5 to All on Thu Nov 4 11:35:51 2021
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris M. Thomasson@21:1/5 to Bonita Montero on Mon May 9 14:18:55 2022
    On 11/4/2021 3:35 AM, Bonita Montero wrote:
    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.

    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)