performance-faster-string-find¶
Optimize calls to std::string::find() and friends when the needle passed is a single character string literal. The character literal overload is more efficient.
Examples:
str.find("A");
// becomes
str.find('A');
Optimize calls to std::string::find() and friends when the needle passed is a single character string literal. The character literal overload is more efficient.
Examples:
str.find("A");
// becomes
str.find('A');