3.1.1. allocator.hpp¶
Full path: allocator/allocator.hpp
-
template<typename
Alloc>
conceptAllocator¶ Requires
CopyConstructible<Alloc>.Associated Types-
using
perm= typename Alloc::perm¶ The type of permutations that
Allocallocates.Requires
Permutation<perm>.
-
using
pointer= typename Alloc::pointer¶ -
using
const_pointer= typename Alloc::const_pointer¶ Pointer-like types returned and accepted by the allocator.
Requires
NullablePointer<pointer>,NullablePointer<const_pointer>.
Notation
-
pointer
ptr¶ -
const_pointer
cPtr¶
-
const UPerm
cp¶ A
Permutation.
Valid ExpressionscAlloc.degree(), convertible to an integer type, returning the degree of permutations allocated by the allocator.alloc.make(), returning apointerto a new permutation. Its value is unspecified, and may not be safe to read.alloc.make_identity(), returning apointerto a new permutation initialized to be the identity permutation.alloc.copy(cp), returning apointerto a new permutation initialized to be a copy of the given permutation.alloc.release(cPtr), gives a permutation back to the allocator. Permutations must be released by the same allocator or a copy of the allocator they were allocated by.
-
using