* @brief Removes the last `n` characters from the view. * @warning The behavior is @b undefined if `n > size()`. */
| 3017 | * @warning The behavior is @b undefined if `n > size()`. |
| 3018 | */ |
| 3019 | void remove_suffix(size_type n) noexcept { |
| 3020 | assert(n <= size()); |
| 3021 | sz_string_erase(&string_, size() - n, n); |
| 3022 | } |
| 3023 | |
| 3024 | /** @brief Added for STL compatibility. */ |
| 3025 | basic_string substr() const noexcept { return *this; } |