std::basic_string::npos

From Cppreference

Jump to: navigation, search
static const size_type npos = -1;

This is a special value that is assigned maximum representable value by size_type type. The exact meaning depends on context.