Class AlignedAllocation

Inheritance Relationships

Derived Types

Class Documentation

class umpire::strategy::mixins::AlignedAllocation

Subclassed by DynamicSizePool< IA >, umpire::strategy::DynamicPoolMap, umpire::strategy::QuickPool

Public Functions

AlignedAllocation() = delete
AlignedAllocation(std::size_t alignment, strategy::AllocationStrategy *strategy)
std::size_t aligned_round_up(std::size_t size)

Round up the size to be an integral multple of configured alignment.

Return

Size rounded up to be integral multiple of configured alignment

void *aligned_allocate(const std::size_t size)

Return an allocation of size bytes that is aligned on the configured alignment boundary.

void aligned_deallocate(void *ptr)

Deallocate previously alligned allocation.

Protected Attributes

strategy::AllocationStrategy *m_allocator