1 // Copyright David Abrahams 2004. Use, modification and distribution is
2 // subject to the Boost Software License, Version 1.0. (See accompanying
3 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
4 #ifndef INDIRECT_REFERENCE_DWA200415_HPP
5 # define INDIRECT_REFERENCE_DWA200415_HPP
7 // dereferenceable_traits provides access to the value_type and
8 // reference of a Dereferenceable type.
10 # include <boost/detail/is_incrementable.hpp>
11 # include <boost/iterator/iterator_traits.hpp>
12 # include <boost/type_traits/remove_cv.hpp>
13 # include <boost/mpl/apply_if.hpp>
14 # include <boost/pointee.hpp>
21 struct smart_ptr_reference
23 typedef typename boost::pointee<P>::type& type;
28 struct indirect_reference
30 detail::is_incrementable<P>
31 , iterator_reference<P>
32 , detail::smart_ptr_reference<P>
39 #endif // INDIRECT_REFERENCE_DWA200415_HPP