find

Finds a string, Null Terminated Character Type Sequence or char type in a string starting from the beginning.

  size_type find 

  (const basic_string& str, size_type pos = 0) const;

  size_type find 

  (const charT* s, size_type pos, size_type n) const;

  size_type find (const charT* s, size_type pos = 0) const;

  size_type find (charT c, size_type pos = 0) const;  
Remarks

The found position or npos if not found.