趣味で作ってるロボット用ソフトウェア
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
All
Classes
Files
Functions
Enumerations
Enumerator
Friends
Pages
lib
misc
delete_object.hpp
Go to the documentation of this file.
1
#ifndef HRK_DELETE_OBJECT_H
2
#define HRK_DELETE_OBJECT_H
3
9
#include <algorithm>
10
11
12
namespace
hrk
13
{
14
struct
delete_object
15
{
21
template
<
typename
T>
22
void
operator()
(
const
T* pointer)
const
23
{
24
if
(pointer) {
25
delete
pointer;
26
pointer = NULL;
27
}
28
}
29
};
30
}
31
32
#endif
hrk::delete_object
Definition:
delete_object.hpp:14
hrk::delete_object::operator()
void operator()(const T *pointer) const
オブジェクトの削除
Definition:
delete_object.hpp:22
Generated on Tue Oct 24 2017 04:56:04 for 趣味で作ってるロボット用ソフトウェア by
1.8.6