33 struct dtor final :
public std::unary_function <T, void>
37 void operator()(
T &ptr)
41 template<
typename T1,
typename T2>
43 public std::unary_function <std::pair<T1, T2>, void>
46 {
delete pair.second; }
55 template<
typename Container>
58 std::for_each(c.begin(), c.end(),
make_dtor(c));
void delete_all(Container &c)
dtor< typename Cont::value_type > make_dtor(Cont const &d)
#define A_DEFAULT_COPY(func)
void operator()(std::pair< T1, T2 > &pair)