News for hackers. Stuff that matters.
Re:Appending to an std:string character-by-character: how do... by terrelln on Thursday October 26, 2023 @09:02PM (#38033540)
folly provides functions to resize std::string & std::vector without initialization [0].

[0] https://github.com/facebook/folly/blob/3c8829785e3ce86cb821c...

Re:Appending to an std:string character-by-character: how do... by jeffbee on Thursday October 26, 2023 @09:12PM (#38033598)
Yeah, it's nice! And Abseil does it, IFF you use LLVM libc++.

https://github.com/abseil/abseil-cpp/blob/master/absl/string...

The standard adopted it as resize_and_overwrite. Which I think is a little clunky.