
15 Jun
2009
15 Jun
'09
2:37 p.m.
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