| 34 | inline size_t alignment() const override { return alignof(T); } |
| 35 | inline void construct(void* ptr) const override { new (ptr) T(); } |
| 36 | inline void copyConstruct(void* dst, const void* src) const override { |
| 37 | new (dst) T(*reinterpret_cast<const T*>(src)); |
| 38 | } |
| 39 | inline void destruct(void* ptr) const override { |
| 40 | reinterpret_cast<T*>(ptr)->~T(); |
| 41 | } |