For the Release version of the library, operator new performs an optimal memory allocation in a manner similar to malloc. In the Debug version, operator new participates in an allocation-monitoring scheme designed to detect memory leaks.
void* operator new( size_t nSize );
throw( CMemoryException );
void* operator new( size_t nSize, LPCSTR lpszFileName, int nLine );
throw( CMemoryException );
Header file: | Afx.h |
Platforms: | |
Versions: | 1.0 and later |
Complete documentation: | Visual C++ documentation |
CObject Overview, CObject Operators, Classes Derived from CObject, CObject::operator delete