Namespaces
Variants
Views
Actions

Low level memory management

From cppreference.com
< cpp‎ | memory
Revision as of 16:06, 2 November 2012 by P12bot (Talk | contribs)

 
 
 
 
 

The new-expression is the only way to create an object or an array of objects with dynamic storage duration, that is, with lifetime not restricted to the scope in which it is created. A new-expression obtains storage by calling an allocation function. A delete-expression destroys a most derived object or an array created by a new-expression and calls the deallocation function. The default allocation and deallocation functions, along with related functions, types, and objects, are declared in the header <new>.

Template:cpp/memory/new/dcl list operator newTemplate:cpp/memory/new/dcl list operator deleteTemplate:cpp/memory/new/dcl list get new handlerTemplate:cpp/memory/new/dcl list set new handlerTemplate:cpp/memory/new/dcl list bad allocTemplate:cpp/memory/new/dcl list bad array new lengthTemplate:cpp/memory/new/dcl list nothrow tTemplate:cpp/memory/new/dcl list new handlerTemplate:cpp/memory/new/dcl list nothrow
Defined in header <new>

Contents

Functions
Classes
Types
Objects