Boost logo

Boost :

Subject: Re: [boost] Proposal: Monotonic Containers
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2009-06-15 10:37:39


Christian Schladetsch skrev:
> Hello,
>
> The complete interface is:
>
> template <class T
> , size_t C = 64
> , class Al = std::allocator<T>
> , class Link = boost::uninitialised_array<T, C, Al>
> , class Links = std::deque<Link, Al>
> struct chain;
>
> I have made reference to boost::uninitialised_array<T, C, Al> here. I don't
> think such a beast exists at the moment, but the idea is pretty simple. It
> is a fixed-sized array of uninitialised T's using storage from the given
> allocator.

boost::auto_buffer is usable like this via the function unitialized_grow(C).

-Thorsten


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk