Alfredo Braunstein <[EMAIL PROTECTED]> writes: | It's not a magical value, it's the position before the start of the | container. (and btw is what the std library does). It allows doing a loop | like | | for (post_type pos = 0; pos <= row->lastPos(); ++pos) | getchar(pos); |
std::string s("Lars"); for (std::string::pos_type p = 0; p <= s.length(); ++p) { std::cout << s[p]; // will work if handled like a const string std::cout << s.at(p); // will throw or abort } -- Lgb