Namespaces
Variants
Views
Actions

Talk:cpp/string/basic string/find first of

From cppreference.com

The declarations for find_first_of 1, 3, and 4 have incorrect default values for "pos".

I believe these should be "0" not "npos". (As in, starting from the beginning of the string search for first of...)

You are correct, I updated the page, but don't be afraid to edit yourself. --Cubbi 14:46, 11 October 2011 (PDT)