CPUMallocator.deallocate

Standard allocator methods per the semantics defined above. The deallocate method is @system because it may move memory around, leaving dangling pointers in user code. Somewhat paradoxically, malloc is @safe but that's only useful to safe programs that can afford to leak memory allocated.

  1. void[] allocate(size_t bytes)
  2. bool deallocate(void[] b)
    struct CPUMallocator
    @system @nogc nothrow
    bool
    deallocate
    ()
    (
    void[] b
    )

Meta