Go to the source code of this file.
Namespaces | |
namespace | std |
Typedefs | |
typedef unsigned int | std::size_t |
typedef void(*) | std::new_handler () |
Functions | |
new_handler | std::set_new_handler (new_handler) throw () |
void | operator delete (void *) throw () |
void | operator delete[] (void *) throw () |
void * | operator new (std::size_t) throw () |
void * | operator new[] (std::size_t) throw () |
void * | malloc (std::size_t) |
void | free (void *) |
void | abort () __attribute__((noreturn)) |
void | __cxa_pure_virtual () |
Variables | |
new_handler | __new_handler |
void __cxa_pure_virtual | ( | ) |
void abort | ( | ) |
void free | ( | void * | ) |
void* malloc | ( | std::size_t | ) |
void operator delete | ( | void * | ) | throw () |
void operator delete[] | ( | void * | ) | throw () |
void * operator new | ( | std::size_t | ) | throw () |
Definition at line 53 of file NewDelete.cpp.
00054 { 00055 void *p; 00056 if (sz == 0) 00057 sz = 1; 00058 p = (void*) malloc(sz); 00059 00060 while (p == 0) 00061 { 00062 new_handler handler = __new_handler; 00063 if (! handler) 00064 return 0; 00065 handler(); 00066 p = (void *) malloc(sz); 00067 } 00068 00069 return p; 00070 }
void * operator new[] | ( | std::size_t | ) | throw () |
new_handler __new_handler |
Definition at line 51 of file NewDelete.cpp.
MTÜ TTÜ Robotiklubi |