If you use a different compiler, you may want to check it's SSO buffer size with a simple Gist.libstdc++ in GCC 13libc++ in Clang 17StringZilla sizeof(std::string) 32 24 32 Small String Capacity 15 22 22This design has been since ported to many high-level programming languages. ...
If you use a different compiler, you may want to check it's SSO buffer size with a simple Gist.libstdc++ in GCC 13libc++ in Clang 17StringZilla sizeof(std::string) 32 24 32 Small String Capacity 15 22 22This design has been since ported to many high-level programming languages. ...