Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Standard C++ Library Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

<new>

Module:  Standard C++ Library   Library:  Language support


Header

Local Index

No Entries

Summary

The header <new> is part of the Language support library of the Standard C++ Library. It defines the classes bad_alloc and nothrow_t, the type new_handler, the function set_new_handler(), and several forms of operator new() and operator delete().

Synopsis

namespace std {
  class bad_alloc;
  struct nothrow_t {};
  extern const nothrow_t nothrow;
  typedef void (*new_handler)();
  new_handler set_new_handler (new_handler new_p) throw ();
}

void* operator new (std::size_t) throw (std::bad_alloc);
void* operator new (std::size_t, const std::nothrow_t&)
               throw ();
void  operator delete (void*) throw ();
void  operator delete (void*, const std::nothrow_t&) throw ();
void* operator new[](std::size_t) throw (std::bad_alloc);
void* operator new[](std::size_t, const std::nothrow_t&)
               throw ();
void  operator delete[](void*) throw ();
void  operator delete[](void*, const std::nothrow_t&)
               throw ();

void* operator new  (std::size_t, void*) throw ();
void* operator new[](std::size_t, void*) throw ();
void  operator delete  (void*, void*) throw ();
void  operator delete[](void*, void*) throw ();

See Also

bad_alloc, operator new, operator delete

Standards Conformance

ISO/IEC 14882:1998 -- International Standard for Information Systems --Programming Language C++, Section 18.4



Previous fileTop of DocumentContentsIndex pageNext file

Copyright (c) 1994-2006 Rogue Wave Software, a Quovadx Division.
Licensed under the Apache License, Version 2.0.
Contact Rogue Wave about documentation or support issues. You can also seek help from other developers through the Apache stdcxx community (see below).

For more information on the Rogue Wave Standard C++ Library under open source, see Section 1.2 of the user's guide.