For the Release version of the library, this operator performs an optimal memory allocation in a manner similar to malloc. In the Debug version, this operator participates in an allocation-monitoring scheme designed to detect memory leaks.
Header file: | Afx.h |
Platforms: | H/PC 2.0, Palm-size PC, H/PC Pro |
Windows CE versions: | 1.0 and later |
Complete documentation: | Visual C++ documentation |
void* operator new( size_t nSize );throw( CMemoryException );
void* operator new( size_t nSize, LPCSTR lpszFileName, int nLine );
throw( CMemoryException );