#ifndef DELETER_H_ #define DELETER_H_ 1 #include template struct deleter_array : public std::unary_function { void operator()(T x) { delete[] x; } }; template struct deleter_scalar : public std::unary_function { void operator()(T x) { delete x; } }; #endif