new File Reference


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.

#include "macpp.h"

Namespaces

namespace  std

Classes

struct  std::nothrow_t
void * operator new (std::size_t) throw ()
void * operator new[] (std::size_t) throw ()
void operator delete (void *) throw ()
void operator delete[] (void *) throw ()
void * operator new (std::size_t s, const std::nothrow_t &)
void * operator new[] (std::size_t s, const std::nothrow_t &)
void operator delete (void *p, const std::nothrow_t &)
void operator delete[] (void *p, const std::nothrow_t &)
void * operator new (std::size_t, void *place)
void * operator new[] (std::size_t, void *place)

Variables

const nothrow_t std::nothrow


Function Documentation

void* operator new std::size_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 ()
 

void operator delete void *   )  throw ()
 

void operator delete[] void *   )  throw ()
 

void* operator new std::size_t  s,
const std::nothrow_t
[inline]
 

void* operator new[] std::size_t  s,
const std::nothrow_t
[inline]
 

void operator delete void *  p,
const std::nothrow_t
[inline]
 

void operator delete[] void *  p,
const std::nothrow_t
[inline]
 

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

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


Generated on Sat Feb 13 00:15:38 2010 for MoSync 2 beta 1 by  doxygen 1.4.6-NO