Runs DTOR on all elements if needed. Deallocates array if we exceeded the Preallocated amount. */
| 213 | Deallocates array if we exceeded the Preallocated amount. |
| 214 | */ |
| 215 | ~Prealloced_array() { |
| 216 | if (!Has_trivial_destructor) { |
| 217 | clear(); |
| 218 | } |
| 219 | if (!using_inline_buffer()) my_free(m_ext.m_array_ptr); |
| 220 | } |
| 221 | |
| 222 | size_t capacity() const { |
| 223 | return using_inline_buffer() ? Prealloc : m_ext.m_alloced_capacity; |
no test coverage detected