* @brief Resizes the string to match @p count, filling the new space with the given @p character. * @throw `std::length_error` if the string is too long. * @throw `std::bad_alloc` if the allocation fails. */
| 3592 | * @throw `std::bad_alloc` if the allocation fails. |
| 3593 | */ |
| 3594 | void resize(size_type count, value_type character = '\0') noexcept(false) { |
| 3595 | if (count > max_size()) throw std::length_error("sz::basic_string::resize"); |
| 3596 | if (!try_resize(count, character)) throw std::bad_alloc(); |
| 3597 | } |
| 3598 | |
| 3599 | /** |
| 3600 | * @brief Resizes the string to a specified number of characters without initializing new elements. |
no outgoing calls