cpp/string/basic string view/substr

Returns a view of the substring, where is the smaller of  and.

Return value
View of the substring.

Exceptions
std if.

Complexity
Constant.