Boost logo

Boost :

Subject: Re: [boost] [utility] new auto_buffer class --- RFC
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2009-03-06 18:55:18

Edward Diener skrev:
> Thorsten Ottosen wrote:
>> Dear all,
>> For a long time I have been missing this utility in my own work, and
>> in boost related stuff too. I think there are a number of libraries in
>> boost that can benefit from this utility. Libs like boost.format can
>> be quite a bit more effective. So can logging libraries. etc.

>> Comments are most welcome.
> What does a C VLA, or your auto_buffer class, offer that a
> std::vector<T> does not have ?

It can avoid many heap-allocations leading to a major speed-improvement.
It don't allow overlapping ranges and can use memcpy() then, also
leading to some improvement.


Boost list run by bdawes at, gregod at, cpdaniel at, john at