
Hi,
I was wondering it is currently possible to give ptr_vector a custom
deleter? This could simply be in the form of a functor. If this feature does
not exist, would it be hard to add? For example, you could do this:
namespace boost
{
namespace detail
{
template< typename t_type >
struct default_deleter
{
void operator() ( t_type* ptr )
{
delete ptr;
}
};
}
template<
typename t_type,
typename t_deleter = detail::default_deleter