Namespaces
Variants
Views
Actions

std::basic_string::npos

From cppreference.com
 
 
 
std::basic_string
 
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.