
29 Dec
2010
29 Dec
'10
3:21 a.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.