AlignedSysAllocator
Synopsis
Declared in <folly/memory/Allocator.h>
template<
typename T,
typename Align = DefaultAlign>
class AlignedSysAllocator;
Description
Resembles std::allocator, the default Allocator, but wraps aligned_malloc and aligned_free.
Accepts a policy parameter for providing the alignment, which must: * be invocable as std::size_t(std::size_t) noexcept * taking the type alignment and returning the allocation alignment * be noexcept‐copy‐constructible * have noexcept operator== * have noexcept operator!= * not be final
DefaultAlign and FixedAlign<std::size_t>, provided above, are valid policies.
Type Aliases
Name |
Description |
|
Propagates the allocator on container copy assignment. |
|
Propagates the allocator on container move assignment. |
Propagates the allocator on container swap. |
|
The type of object allocated by this allocator. |
Member Functions
Name |
Description |
|
Constructors |
Allocates aligned storage for |
|
Deallocates storage previously obtained from |
Using Declarations
Name |
Friends
Name |
Description |
Compares two allocators for inequality. |
|
Compares two allocators for equality. |
|
|
AlignedSysAllocator |
Created with MrDocs