substr

Returns a string if possible from beginning at the first arguments position to the last position.

  basic_string substr

  (size_type pos = 0, size_type n = npos) const;  
Remarks

May throw an exception,