| 3610 | |
| 3611 | template<typename U> |
| 3612 | static inline void destroy_array(U* p, size_t count) |
| 3613 | { |
| 3614 | if (p != nullptr) { |
| 3615 | assert(count > 0); |
| 3616 | for (size_t i = count; i != 0; ) |
| 3617 | (p + --i)->~U(); |
| 3618 | } |
| 3619 | aligned_free<U>(p); |
| 3620 | } |
| 3621 | |
| 3622 | template<typename U> |
| 3623 | static inline U* create() |