It will return the static constant string::npos (which is the largest possible value of size_type, or -1)
It's a matter of style, but I'm on the side of comparing to this constant rather then -1 directly.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.