$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2024-06-11 20:14:19
El 11/06/2024 a las 0:46, Antony Polukhin via Boost escribió:
> вÑ, 21 Ð¼Ð°Ñ 2024â¯Ð³. в 08:03, Ion Gaztañaga via Boost <boost_at_[hidden]>:
> <...>
>> Note that this document does not outline a schedule for all those ideas,
>> it's an initial description of possible developments that should be
>> evaluated/prioritized, as developing a substantial subset of the
>> proposals would be a huge task.
>>
>> Thanks in advance for your attention and comments.
>
> There's one container that I find really useful and that is not in a
> list. It's a dynamically allocated array that knows its size and
> allows initialization of elements with the initial value or via a
> lambda.
>
> If fills the gap between vector and unique_ptr<T[]>:
> * works with non-movable and non-copyable types (unlike vector)
> * works with not default constructible types (unlike unique_ptr<T[]>)
> * has continuous layout
> * usable with range based for (unlike unique_ptr<T[]>)
> * smaller than vector (does not need to store capacity)
Hi,
So something like the proposed std::dynarray with additional features.
It's an interesting use case, thanks.
> Here's a prototype
> https://github.com/userver-framework/userver/blob/develop/universal/include/userver/utils/fixed_array.hpp
> We called that container FixedArray, because it is an array of a fixed
> size. And because it "fixes" the issues of dynamically allocated
> arrays.
Thanks for the prototype link. I'll this information to the draft
development plan.
Best,
Ion