What does the phrase std::string::npos mean in the following snippet of code?
std::string::npos
found = str.find(str2); if (found != std::string::npos) std::
string::npos is a constant (probably -1) representing a non-position. It's returned by method find when the pattern was not found.
string::npos
-1
find