18 lines
289 B
C++
18 lines
289 B
C++
#ifndef DELETER_H
|
|
#define DELETER_H
|
|
|
|
//----------------------------------------------------------------
|
|
|
|
namespace utils {
|
|
template <typename T>
|
|
struct deleter {
|
|
void operator()(T *t) {
|
|
delete t;
|
|
}
|
|
};
|
|
}
|
|
|
|
//----------------------------------------------------------------
|
|
|
|
#endif
|