| 196 | } |
| 197 | |
| 198 | void reallocate_dynamic(size_t new_capacity) { |
| 199 | assert(new_capacity >= size_); |
| 200 | auto new_data = new storage_type[new_capacity]; |
| 201 | storage_type::move_construct_several_and_destroy_source(data_, new_data, size_); |
| 202 | delete[] data_; |
| 203 | dynamic_capacity_ = new_capacity; |
| 204 | data_ = new_data; |
| 205 | } |
| 206 | }; |
| 207 | |
| 208 | template <typename T, size_t N, typename Storage> |
nothing calls this directly
no outgoing calls
no test coverage detected