CObject::operator new

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.

Syntax

void* operator new( size_t nSize );
throw( CMemoryException );

void* operator new( size_t nSize, LPCSTR lpszFileName, int nLine );
throw( CMemoryException );

At a Glance

Header file: Afx.h
Platforms:
Versions: 1.0 and later
Complete documentation: Visual C++ documentation

See Also

CObject Overview, CObject Operators, Classes Derived from CObject, CObject::operator delete