.. _cpp-allocator/raw_ptr: ********************************************************** raw_ptr.hpp ********************************************************** Full path: allocator/raw_ptr.hpp .. default-domain:: cpp .. default-role:: cpp:expr .. cpp:namespace:: perm_group .. class:: template raw_ptr_allocator An `Allocator` than uses ``new`` and ``delete`` for allocating permutations. .. type:: perm = Perm .. type:: pointer = perm* .. type:: const_pointer = const perm* .. function:: explicit raw_ptr_allocator(std::size_t n) Construct an allocator that allocates permutations of degree `n`. .. function:: std::size_t degree() const .. function:: pointer make() :returns: `new perm(perm_group::make_perm(degree()))` .. function:: pointer make_identity() :returns: `new perm(perm_group::make_identity_perm(degree()))` .. function:: template pointer copy(UPerm &&p) :returns: `new perm(perm_group::copy_perm(n, std::forward(p)))` .. function:: void release(const_pointer p) Does `delete p`.