Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Macros
NCollection_DefineAlloc.hxx File Reference
#include <NCollection_BaseAllocator.hxx>

Macros

#define DEFINE_NCOLLECTION_ALLOC
 

Macro Definition Documentation

◆ DEFINE_NCOLLECTION_ALLOC

#define DEFINE_NCOLLECTION_ALLOC
Value:
void* operator new(size_t theSize, const occ::handle<NCollection_BaseAllocator>& theAllocator) \
{ \
return theAllocator->Allocate(theSize); \
} \
void operator delete(void* theAddress, \
{ \
theAllocator->Free(theAddress); \
}
Intrusive smart pointer for use with Standard_Transient class and its descendants.
Definition Standard_Handle.hxx:54