std1.0.0-beta-7 SafeC docs

std :: alloc::allocator

Trait std::Deallocate

#include <std/alloc/allocator.h> source

trait Deallocate {
    void dealloc(?&heap unsigned char ptr);
}

Required methods

ยงvoid dealloc(?&heap unsigned char ptr)source

Gives back a block alloc returned; null is a no-op. A no-op on an allocator that can't free one block (bump: reset() frees them all).