CObject::operator new

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.

At a Glance

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

Syntax

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

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

See Also

CObject::operator delete