9 template <
typename T, std::
size_t N = alignof(T)>
12 using aligned_type = std::aligned_storage_t<sizeof(T), N>;
19 using propagate_on_container_copy_assignment = std::true_type;
20 using propagate_on_container_move_assignment = std::true_type;
46 T* allocate(std::size_t n)
const {
47 return reinterpret_cast<T*
>(
new aligned_type[n]);
51 void deallocate(T* p, std::size_t s)
const noexcept {
52 delete[]
reinterpret_cast<aligned_type*
>(p);
56 template <
typename T,
typename U, std::
size_t N>
62 template <
typename T,
typename U, std::
size_t N>
Definition: allocator.h:6
Definition: allocator.h:40
Definition: allocator.h:10