string::npos : string iterator « string « C++ Tutorial






#include <iostream>
#include <string>
using std::cout;
using std::endl;
using std::string;

int main() {
  string text = "asdf asdf asdf asdf asdf";

  size_t start = text.find_first_not_of("df");
  
  cout << start;
  cout << string::npos;

  return 0;
}
04294967295








15.14.string iterator
15.14.1.Using an iterator to output a string
15.14.2.use iterator
15.14.3.string::npos