new File Reference

#include <cstddef>
#include <exception>

Go to the source code of this file.

Namespaces

namespace  std


Detailed Description

The header new 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 *  ,
void * 
throw () [inline]
 

Definition at line 96 of file new.

Referenced by std::__valarray_release_memory(), __gnu_cxx::_BA_free_list_store::_S_clear(), __gnu_cxx::bitmap_allocator< _Tp >::_S_memory_put(), and __gnu_cxx::_BA_free_list_store::_S_validate_free_list().

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

void operator delete void *   )  throw ()
 

void operator delete[] void *  ,
void * 
throw () [inline]
 

Definition at line 97 of file new.

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

void operator delete[] void *   )  throw ()
 

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

Definition at line 92 of file new.

Referenced by std::__valarray_get_memory(), __gnu_cxx::_BA_free_list_store::_S_get_free_list(), and __gnu_cxx::bitmap_allocator< _Tp >::_S_memory_get().

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

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 *  __p
throw () [inline]
 

Definition at line 93 of file new.

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

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


Generated on Tue Jan 30 17:31:56 2007 for GNU C++ STL by doxygen 1.3.6