![]() |
Blaze 3.9
|
Deduction of an allocator type for dynamic vectors and matrices. More...
#include <DynamicAllocator.h>
Deduction of an allocator type for dynamic vectors and matrices.
The DynamicAllocator type trait deduces the allocator type for dynamic vectors and matrices. Given one or two allocators, it provides a nested Type alias template, which results in the according allocator type:
In case no resulting allocator type can be determined, the nested Type template will result in blaze::NullAllocator for all possible types.
DynamicAllocator is guaranteed to work only for all Blaze allocator types. In order to add support for user-defined allocator types it is possible to specialize the DynamicAllocator template. The following example demonstrates the according specialization for the blaze::AlignedAllocator class template: