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

operator delete

Module:  Standard C++ Library   Library:  Language support


Function

Local Index

Non-Members

Summary

Storage deallocation functions implicitly called by the corresponding delete expressions to deallocate storage previously allocated by one of the matching allocation functions

Synopsis

#include <new>

namespace std {
    struct nothrow_t {};
    extern const nothrow_t nothrow;
}

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

Description

The library provides definitions for six overloads of the global operator delete. The functions are implicitly called as the second step (after the call to the destructor, if any) during the evaluation of the corresponding delete expression to deallocate storage previously allocated by one of the matching allocation functions (::operator new). Replacements for the replaceable forms of the functions should always paired with the replacements for the corresponding overload of operator new.

Global Operators

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

See Also

<new>, bad_alloc, operator new

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.