header
<new>
Dynamic memory
This header describes functions used to manage dynamic storage in C++.
Exceptionally within the standard library, this header declares several functions in the
global namespace instead of in the
std namespace: These are the operator overloads for
new and
delete, which handle dynamic storage requests. Some of these functions have also the special property of being replaceable in a program.
The header also defines some specific types and the
set_new_handler function:
Contents
Functions:
- operator new
- Allocate storage space (function
)
- operator new[]
- Allocate storage space for array (function
)
- operator delete
- Deallocate storage space (function
)
- operator delete[]
- Deallocate storage space of array (function
)
- set_new_handler
- Set new handler function (function)
Types:
- bad_alloc
- Exception thrown on failure allocating memory (class)
- new_handler
- Type of new handler function (type)
- nothrow_t
- Nothrow type (type
)
Constants:
- nothrow
- Nothrow constant (constant)