rfind

Finds a string, Null Terminated Character Type Sequence or char type in a string testing backwards from the end.

  size_type rfind

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

  size_type rfind

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

  size_type rfind

  (const charT* s, size_type pos = npos) const;

  size_type rfind(charT c, size_type pos = npos) const;  
Remarks

The found position or npos if not found.