For example:
unsigned char npos = -1;is valid a valid statement.
std::string::npos could be a different type, such as int. It depends on the compiler.
Reference: The C++ Standard Library: A Tutorial and Reference by Nicolai M. Josuttis, Addison-Wesley, 1999., p. 495.
No comments:
Post a Comment