|
Boost : |
From: degski (degski_at_[hidden])
Date: 2020-01-10 11:28:48
On Thu, 9 Jan 2020 at 16:28, Gavin Lambert via Boost <boost_at_[hidden]>
wrote:
> On 7/01/2020 21:11, Frederick Gotham wrote:
> > I propose a new allocator that uses global (i.e. static duration) memory.
>
> This looks somewhat like an "arena allocator". You'll find many
> existing examples using that keyword.
>
https://howardhinnant.github.io/stack_alloc.html. Howard has also
published: https://howardhinnant.github.io/allocator_boilerplate.html ,
which makes it a doddle to write your own STL-style allocators
(particularly in C++17, as it seems to get simpler as we go along).
Using static_vector instead is much safer.
>
https://github.com/gnzlbg/static_vector is fully constexpr and up for std,
AFAIK.
Happy New Year to all on the list.
degski
-- @realdegski https://brave.com/google-gdpr-workaround/ "We value your privacy, click here!" Sod off! - degski "Anyone who believes that exponential growth can go on forever in a finite world is either a madman or an economist" - Kenneth E. Boulding "Growth for the sake of growth is the ideology of the cancer cell" - Edward P. Abbey
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk