1 /////////////////////////////////////////////////////////////////////////////
3 // (C) Copyright Ion Gaztanaga 2006-2012
5 // Distributed under the Boost Software License, Version 1.0.
6 // (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
9 // See http://www.boost.org/libs/intrusive for documentation.
11 /////////////////////////////////////////////////////////////////////////////
13 #ifndef BOOST_INTRUSIVE_TEST_COMMON_FUNCTORS_HPP
14 #define BOOST_INTRUSIVE_TEST_COMMON_FUNCTORS_HPP
16 #include<boost/intrusive/detail/utilities.hpp>
17 #include<boost/intrusive/detail/mpl.hpp>
27 template <class Pointer>
28 void operator()(Pointer p)
30 typedef typename std::iterator_traits<Pointer>::value_type value_type;
31 BOOST_INTRUSIVE_INVARIANT_ASSERT(( detail::is_same<T, value_type>::value ));
32 delete boost::intrusive::detail::to_raw_pointer(p);
40 T *operator()(const T &t)
45 class new_default_factory
53 } //namespace intrusive {