basic_string substr(size_type pos = 0, size_type n = npos) const;
Throws: out_Βof_Βrange if pos > size().
Effects: Determines the effective length rlen of the string to copy as the smaller of n and size() - pos.
Returns: basic_Βstring(data()+pos, rlen).