Jump to content

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

From Wikibooks, open books for an open world

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)