Function deallocate

Synopsis

#include <include/EASTL/allocator.h>

void deallocate(void *p, size_t n)

Description

No description yet.

Source

Lines 283-294 in include/EASTL/allocator.h. Line 62 in include/EASTL/allocator.h.

inline void allocator::deallocate(void* p, size_t)
{
    #if EASTL_DLL
        if (p != nullptr)
        {
            void* pOriginalAllocation = *((void**)p - 1);
            delete[](char*)pOriginalAllocation;
        }
    #else
        delete[](char*)p;
    #endif
}





Add Discussion as Guest

Log in