C++ Language/Std/Strings/StringClass/Algorithms

A family of  query algorithms return   (which is -1) to indicate "pattern is not found".

Additional information about string algorithms (includes interactive examples)