Remix.run Logo
▲ accelbred 4 hours ago

Many of the big C++ projects I've worked with have custom string types since the standard one was defficient for some reason or another.

▲jstimpfle 4 hours ago | parent [-]

Exactly, and a simple usable string type is just a struct MyString { char *buf; size_t len; }; away. Actual magic is in how you use it, where you allocate it, how you integrate allocation and formatting and logging and I/O... i.e. all the things that aren't solved by crufty complex std::string either.