| 4333 | |
| 4334 | template <typename char_type_, typename allocator_> |
| 4335 | bool basic_string<char_type_, allocator_>::try_push_back(char_type c) noexcept { |
| 4336 | auto result = _with_alloc([&](sz_alloc_type &alloc) { |
| 4337 | auto old_size = size(); |
| 4338 | sz_ptr_t start = sz_string_expand(&string_, SZ_SIZE_MAX, 1, &alloc); |
| 4339 | if (!start) return sz_bad_alloc_k; |
| 4340 | start[old_size] = c; |
| 4341 | return sz_success_k; |
| 4342 | }); |
| 4343 | return result == status_t::success_k; |
| 4344 | } |
| 4345 | |
| 4346 | template <typename char_type_, typename allocator_> |
| 4347 | bool basic_string<char_type_, allocator_>::try_append(const_pointer str, size_type length) noexcept { |
no test coverage detected