openscad/src/stl-utils.h

17 lines
203 B
C
Raw Normal View History

#pragma once
2011-08-04 06:58:17 +04:00
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>();
}