[−][src]Macro unique::make_allocator
make_allocator!(Type, NAME, Allocator)
Performs the following steps:
- Create a static reference to an
Allocator<Type>
accessible byNAME
. - Lazily initialise (via
lazy_static
) toAllocator::default()
. - Implements
Allocated
forType
by using this allocator.