CPP04 1.0
読み取り中…
検索中…
一致する文字列を見つけられません
TestRaii.cpp ファイル

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>
TestRaii.cpp の依存先関係図:

[ソースコード]

関数

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 に定義があります。

関数詳解

◆ operator delete()

void operator delete ( void *  ptr)
throw (
)

TestRaii.cpp54 行目に定義があります。

◆ operator new()

void * operator new ( std::size_t  size)
throw (std::bad_alloc
)

TestRaii.cpp33 行目に定義があります。

◆ testRaii()

int testRaii ( void  )

TestRaii.cpp56 行目に定義があります。