Jump to content
  • Advertisement

Archived

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

xorjesus

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

This topic is 5290 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
Advertisement
sweet!!!! Thanx SirCrane! Gawd! I searched for hours for npos in msdn and the header files in MSVC++.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!