
15 Feb
2011
15 Feb
'11
7:38 p.m.
On 14.02.2011, at 20:15, Stephan T. Lavavej wrote:
[Scott McMurray]
How bug a buffer does SBO usually use?
VC's std::string uses 16 bytes, enough to store 15 chars or 7 wchar_ts plus a null terminator.
I believe STLPort uses twice that for char, and grows with the character type (i.e. twice that again for 16-bit code units). Whereas libc++, which was developed with move semantics in mind, has a very small buffer. Sebastian