Back to index

cell-binutils  2.17cvs20070401
del.cc
Go to the documentation of this file.
00001 #include <new>
00002 
00003 extern "C" void free (void *);
00004 
00005 void
00006 operator delete (void *ptr, const std::nothrow_t&) throw ()
00007 {
00008   if (ptr)
00009     free (ptr);
00010 }
00011 
00012 void
00013 operator delete (void *ptr) throw ()
00014 {
00015   if (ptr)
00016     free (ptr);
00017 }
00018 
00019 void
00020 operator delete[] (void *ptr) throw ()
00021 {
00022   ::operator delete (ptr);
00023 }
00024 
00025 void
00026 operator delete[] (void *ptr, const std::nothrow_t&) throw ()
00027 {
00028   ::operator delete (ptr);
00029 }