
28 Dec
2010
28 Dec
'10
8:21 p.m.
On Tuesday 28 December 2010, Dave Abrahams wrote:
Yeah, an allocator with some internal storage that falls back to the heap when it's exausted would allow std::vector's to essentially use the "small string optimization."
It would have to rely on c++0x or implementation-defined behaviour though, as c++03 containers are explicitly not required to support stateful allocators.