#include <stdlib.h>#include <new>#include <iostream>#include "utility.h"#include "op_exception.h"
Go to the source code of this file.
Data Structures | |
| struct | A |
Functions | |
| void * | operator new (size_t size) throw (bad_alloc) |
| void * | operator new[] (size_t size) throw (bad_alloc) |
| void | operator delete (void *p) throw () |
| void | operator delete[] (void *p) throw () |
| void | check_alloc () |
| template<typename Throw , typename Catch > | |
| void | throw_tests () |
| template<typename Throw , typename Catch > | |
| void | throw_tests (bool) |
| void | tests_new () |
| int | main () |
Variables | |
| static int | nb_new |
| static int | nb_new_array |
tests utility.h and op_exception.h
Definition in file utility_tests.cpp.
| void check_alloc | ( | ) |
Definition at line 51 of file utility_tests.cpp.
References nb_new, and nb_new_array.
Referenced by main().

| int main | ( | void | ) |
Definition at line 106 of file utility_tests.cpp.
References check_alloc(), and tests_new().

| void operator delete | ( | void * | p | ) | throw () |
Definition at line 36 of file utility_tests.cpp.
References nb_new.
| void operator delete[] | ( | void * | p | ) | throw () |
Definition at line 43 of file utility_tests.cpp.
References nb_new_array.
| void* operator new | ( | size_t | size | ) | throw (bad_alloc) |
Definition at line 24 of file utility_tests.cpp.
References nb_new.
| void* operator new[] | ( | size_t | size | ) | throw (bad_alloc) |
Definition at line 30 of file utility_tests.cpp.
References nb_new_array.
| void tests_new | ( | ) |
Definition at line 93 of file utility_tests.cpp.
Referenced by main().

| void throw_tests | ( | bool | ) | [inline] |
Definition at line 81 of file utility_tests.cpp.
| void throw_tests | ( | ) | [inline] |
Definition at line 68 of file utility_tests.cpp.
int nb_new [static] |
Definition at line 21 of file utility_tests.cpp.
Referenced by check_alloc(), operator delete(), and operator new().
int nb_new_array [static] |
Definition at line 22 of file utility_tests.cpp.
Referenced by check_alloc(), operator delete[](), and operator new[]().
1.6.1