CPP04 1.0
|
Test error handling for fail of new. [詳解]
#include "Animal.hpp"
#include "Cat.hpp"
#include "Dog.hpp"
#include "ScopedPointer.hpp"
#include <cstdlib>
#include <iostream>
#include <new>
#include <string>
関数 | |
void * | operator new (std::size_t size) throw (std::bad_alloc) |
void | operator delete (void *ptr) throw () |
int | testRaii (void) |
Test error handling for fail of new.
TestRaii.cpp に定義があります。
void operator delete | ( | void * | ptr | ) | |
throw | ( | ||||
) |
TestRaii.cpp の 54 行目に定義があります。
void * operator new | ( | std::size_t | size | ) | |
throw | ( | std::bad_alloc | |||
) |
TestRaii.cpp の 33 行目に定義があります。
int testRaii | ( | void | ) |
TestRaii.cpp の 56 行目に定義があります。