What advantage does Bstrlib::CBString have over std::string?
A. std::string is an STL generic which will be somewhat slower than CBString because of it. std::string also does not contain a lot of standard character string manipulations like format, findreplace, split and join. CBString implements useful write protection (that extends into per character protection.) With std::string it is cumbersome to be bounds protected, and easy to be unsafe (this is opposite to Bstrlib::CBString, where a cast and a dereference is required to drop safety.
Related Questions
- If a confirmatory test is still needed, what is the advantage to sexually transmitted disease (STD) clinics of using rapid HIV testing?
- Are C++ strings (std::string) supported, and how is OTL integrated with the Standard Template Library (STL)?
- What advantage does Bstrlib::CBString have over std::string?