|
inlinenodiscardconstexpr |
Get a substring.
| __pos | Index of first character (default 0). |
| __n | Number of characters in substring (default remainder). |
| std::out_of_range | If __pos > size(). |
Construct and return a new string using the __n characters starting at __pos. If the string is too short, use the remainder of the characters. If __pos is beyond the end of the string, out_of_range is thrown.
Definition at line 3465 of file basic_string.h.
Referenced by __gnu_debug::basic_string< char >::substr().
