This topic is now archived and is closed to further replies.

What does basic_stream::find_first_of return if it doesn't find anything?

This topic is 4952 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I know it returns npos, but I can''t find the definition anywhere, and the following code won''t compile :[
string test = "abcde";
if (test.find_first_of('' '', 0) == npos)
//do something

Is there some bizzare namespace to npos or something?? Thank you for any and all help.

Share this post

Link to post
Share on other sites