Standard C++ Library Reference ISO/IEC (VERSION3)

The required behavior is the same as for operator new(size_t). The default behavior is to return
operator new(count).
The second function is called by a placement new[] expression to allocate count bytes of storage
suitably aligned to represent any array object of that size. The program can define a function with this
function signature that replaces the default version defined by the Standard C++ library.
The default behavior is to return operator new(count) if that function succeeds. Otherwise, it
returns a null pointer.
The third function is called by a placement new[] expression, of the form new (args) T[N]. Here,
args consists of a single object pointer. The function returns ptr.
set_new_handler
new_handler set_new_handler(new_handler pnew) throw();
The function stores pnew in a static new handler pointer that it maintains, then returns the value
previously stored in the pointer. The new handler is used by operator new(size_t).
See also the Table of Contents and the Index.
Copyright © 1992-2001 by P.J. Plauger. All rights reserved.