Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
zabzonk
· 3y ago · 0 comments
> std::string can store <=22 character strings without needing to allocate
implementation dependent - the c++ standard says nothing on this
Comments
[–]
TylerGlaiel
3y ago
sure but this is how pretty much every implementation does it these days, so you should be able to safely rely on that (or just drop in your own version that provides that guarantee if you are really concerned about it)