Luna::Allocator::deallocate

template <typename _Ty>
void deallocate(_Ty *ptr, usize n=1)

Deallocates memory allocated from allocate.

Parameters

  • in ptr

    The memory pointer returned by allocate.

  • in n

    The number of elements earler passed to allocate.