Get a substring.
- Parameters
-
| __pos | Index of first character (default 0). |
| __n | Number of characters in substring (default remainder). |
- Returns
- The new string.
- Exceptions
-
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 2918 of file cow_string.h.
constexpr basic_string() noexcept(/*conditional */)
Default constructor creates an empty string.
constexpr size_type _M_check(size_type __pos, const char *__s) const
Managing sequences of characters and character-like objects.