cpp/string/basic string/substr

Returns a substring. If the requested substring extends past the end of the string, i.e. the is greater than  (e.g. if ), the returned substring is.

@1@ Equivalent to.

@2@ Equivalent to.

Return value
String containing the substring or.

Exceptions
std if.

Complexity
Linear in.