strobj.find(str1,pos), what if position argument is out of the size?

Will the following code make the find() search until the string::npos?

1
2
string l="hello";
l.find("hey",10);//out of range of l.size(); 
http://en.cppreference.com/w/cpp/string/basic_string/find

If pos >= size(), the function always returns npos.
thanks!
Topic archived. No new replies allowed.