|
OSSIA
Open Scenario System for Interactive Application
|
An allocator which guarantees that the memory is aligned on Align. More...
An allocator which guarantees that the memory is aligned on Align.
This must not be aliased away for any build configuration: users of ossia::pod_vector are entitled to do aligned SIMD loads on its contents in debug builds too.
Public Types | |
| using | value_type = T |
Public Member Functions | |
| aligned_pod_allocator (const aligned_pod_allocator &) noexcept=default | |
| aligned_pod_allocator (aligned_pod_allocator &&) noexcept=default | |
| aligned_pod_allocator & | operator= (const aligned_pod_allocator &) noexcept=default |
| aligned_pod_allocator & | operator= (aligned_pod_allocator &&) noexcept=default |
| template<class U > | |
| aligned_pod_allocator (const aligned_pod_allocator< U, Align > &) noexcept | |
Static Public Member Functions | |
| static T * | allocate (std::size_t num) noexcept |
| static void | deallocate (T *p, std::size_t) noexcept |
Static Public Attributes | |
| static constexpr std::size_t | alignment = Align |
| static constexpr bool | needs_aligned_alloc = Align > alignof(std::max_align_t) |