SpiecsEngine
 
Loading...
Searching...
No Matches

◆ operator delete() [2/2]

void operator delete ( void * ptr,
std::align_val_t align )
noexcept

override delete operator.

Parameters
[in]ptrmemory pointer.
[in]alignaligned bytes.

free memory using free before MemoryPool is initialized.

free memory using MemoryPool if is initialized.

Do nothing while exist program.

free memory using free default.

Definition at line 360 of file MemoryEntry.h.

361{
363 {
368 {
370 return;
371 }
372
377 {
379 return;
380 }
381
386 {
387 return;
388 }
389
393 default:
394 {
396 return;
397 }
398 }
399}
static void freeToOS_Aligned(void *ptr, std::align_val_t align)
free memory to OS aligned version.
static ProcessState GetProcessState()
Get ProcessState Instance.
Definition MemoryEntry.h:29
static void freeToPool(void *ptr)
free memory to MemoryPool.
Definition MemoryEntry.h:90

References Spices::BeforeEntry, Spices::Exit, Spices::MemoryEntry::freeToPool(), Spices::MemoryEntry::GetProcessState(), and Spices::Run.