Whole document tree
    

Whole document tree

new File Reference
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

new File Reference

#include <cstddef>
#include <exception>

Include dependency graph for new:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  std


Detailed Description

This header defines several functions to manage dynamic memory and handling memory allocation errors; see http://gcc.gnu.org/onlinedocs/libstdc++/18_support/howto.html#4 for more.

Definition in file new.


Function Documentation

void operator delete void *   ,
const std::nothrow_t  
throw ()
 

These are replaceable signatures:

  • normal single new and delete (no arguments, throw bad_alloc on error)
  • normal array new and delete (same)
  • nothrow single new and delete (take a nothrow argument, return NULL on error)
  • nothrow array new and delete (same)
Placement new and delete signatures (take a memory address argument, does nothing) may not be replaced by a user's program.

Definition at line 36 of file del_opnt.cc.

References free().

Referenced by std::__valarray_release_memory().

void operator delete void *    throw ()
 

These are replaceable signatures:

  • normal single new and delete (no arguments, throw bad_alloc on error)
  • normal array new and delete (same)
  • nothrow single new and delete (take a nothrow argument, return NULL on error)
  • nothrow array new and delete (same)
Placement new and delete signatures (take a memory address argument, does nothing) may not be replaced by a user's program.

void operator delete[] void *   ,
const std::nothrow_t  
throw ()
 

These are replaceable signatures:

  • normal single new and delete (no arguments, throw bad_alloc on error)
  • normal array new and delete (same)
  • nothrow single new and delete (take a nothrow argument, return NULL on error)
  • nothrow array new and delete (same)
Placement new and delete signatures (take a memory address argument, does nothing) may not be replaced by a user's program.

Definition at line 34 of file del_opvnt.cc.

void operator delete[] void *    throw ()
 

These are replaceable signatures:

  • normal single new and delete (no arguments, throw bad_alloc on error)
  • normal array new and delete (same)
  • nothrow single new and delete (take a nothrow argument, return NULL on error)
  • nothrow array new and delete (same)
Placement new and delete signatures (take a memory address argument, does nothing) may not be replaced by a user's program.

void* operator new std::size_t   ,
void *    place
throw () [inline]
 

These are replaceable signatures:

  • normal single new and delete (no arguments, throw bad_alloc on error)
  • normal array new and delete (same)
  • nothrow single new and delete (take a nothrow argument, return NULL on error)
  • nothrow array new and delete (same)
Placement new and delete signatures (take a memory address argument, does nothing) may not be replaced by a user's program.

Definition at line 86 of file new.

Referenced by std::__valarray_get_memory(), and operator new[]().

void* operator new std::size_t   ,
const std::nothrow_t  
throw ()
 

These are replaceable signatures:

  • normal single new and delete (no arguments, throw bad_alloc on error)
  • normal array new and delete (same)
  • nothrow single new and delete (take a nothrow argument, return NULL on error)
  • nothrow array new and delete (same)
Placement new and delete signatures (take a memory address argument, does nothing) may not be replaced by a user's program.

void* operator new std::size_t    throw (std::bad_alloc)
 

These are replaceable signatures:

  • normal single new and delete (no arguments, throw bad_alloc on error)
  • normal array new and delete (same)
  • nothrow single new and delete (take a nothrow argument, return NULL on error)
  • nothrow array new and delete (same)
Placement new and delete signatures (take a memory address argument, does nothing) may not be replaced by a user's program.

void* operator new[] std::size_t   ,
void *    place
throw () [inline]
 

These are replaceable signatures:

  • normal single new and delete (no arguments, throw bad_alloc on error)
  • normal array new and delete (same)
  • nothrow single new and delete (take a nothrow argument, return NULL on error)
  • nothrow array new and delete (same)
Placement new and delete signatures (take a memory address argument, does nothing) may not be replaced by a user's program.

Definition at line 87 of file new.

void* operator new[] std::size_t   ,
const std::nothrow_t  
throw ()
 

These are replaceable signatures:

  • normal single new and delete (no arguments, throw bad_alloc on error)
  • normal array new and delete (same)
  • nothrow single new and delete (take a nothrow argument, return NULL on error)
  • nothrow array new and delete (same)
Placement new and delete signatures (take a memory address argument, does nothing) may not be replaced by a user's program.

void* operator new[] std::size_t    throw (std::bad_alloc)
 

These are replaceable signatures:

  • normal single new and delete (no arguments, throw bad_alloc on error)
  • normal array new and delete (same)
  • nothrow single new and delete (take a nothrow argument, return NULL on error)
  • nothrow array new and delete (same)
Placement new and delete signatures (take a memory address argument, does nothing) may not be replaced by a user's program.


Generated on Mon Apr 8 03:13:52 2002 for libstdc++-v3 Source by doxygen1.2.15