DIP 1014

Walter Bright newshound2 at digitalmars.com
Sun Sep 30 06:47:46 UTC 2018


On 9/29/2018 9:34 PM, Manu wrote:
> GNU's std::string implementation stores an interior pointer! >_<
> 
> No other implementation does this. It's a really bad implementation
> actually, quite inefficient. It could make better use of its space for
> small-strings if it wasn't wasting 8-bytes for an interior pointer to
> a small string buffer...

Could you post a synopsis of the layout of std::string?


More information about the Digitalmars-d mailing list