
6 Mar
2009
6 Mar
'09
11:55 p.m.
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. -Thorsten