Boost logo

Boost :

From: degski (degski_at_[hidden])
Date: 2020-01-24 12:09:51


On Fri, 24 Jan 2020 at 02:45, Alexander Grund via Boost <
boost_at_[hidden]> wrote:

> Bonus points:
> template<typename T, size_t N>
> using heap_static_array = std::unique_ptr<std::array<T, N>>;
>

Extra bonus points:

template<typename T, size_t N>
using heap_static_vector = std::unique_ptr<std::static_vector<T, N>>;

degski

Note to self: std::static_vector<T, N> could be the base of a fully dynamic
stack-allocated deque.

-- 
@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