Whole document tree
    

Whole document tree

new_op.cc File Reference
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

new_op.cc File Reference

#include "new"
#include <exception_defines.h>

Include dependency graph for new_op.cc:

Include dependency graph

Go to the source code of this file.

Functions

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

Variables

new_handler __new_handler


Function Documentation

void* malloc std::size_t   
 

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.

Definition at line 40 of file new_op.cc.

References __new_handler, abort(), malloc(), and std::new_handler.


Variable Documentation

new_handler __new_handler
 

Definition at line 37 of file new_op.cc.

Referenced by operator new().


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