mirror of https://github.com/vitalif/openscad
20 lines
238 B
C
20 lines
238 B
C
![]() |
#ifndef STLUTILS_H_
|
||
|
#define STLUTILS_H_
|
||
|
|
||
|
template<class T>
|
||
|
struct del_fun_t
|
||
|
{
|
||
|
del_fun_t& operator()(T* p) {
|
||
|
delete p;
|
||
|
return *this;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
template<class T>
|
||
|
del_fun_t<T> del_fun()
|
||
|
{
|
||
|
return del_fun_t<T>();
|
||
|
}
|
||
|
|
||
|
#endif
|