C++ Language/Std/Strings/StringClass/Algorithms
Appearance
A family of find()
query algorithms return basic_string::npos
(which is -1) to indicate "pattern is not found".
Additional information about string algorithms (includes interactive examples)