File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed
Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change 1- #ifndef INDIRECT_REFERENCE_DWA200415_HPP
2- #define INDIRECT_REFERENCE_DWA200415_HPP
1+ #ifndef BOOST_INDIRECT_REFERENCE_DWA200415_HPP
2+ #define BOOST_INDIRECT_REFERENCE_DWA200415_HPP
33
44//
55// Copyright David Abrahams 2004. Use, modification and distribution is
1111// http://www.boost.org/libs/iterator/doc/pointee.html
1212//
1313
14+ #include < type_traits>
15+
1416#include < boost/detail/is_incrementable.hpp>
1517#include < boost/iterator/iterator_traits.hpp>
1618#include < boost/pointee.hpp>
1719
18- #include < type_traits>
19-
2020namespace boost {
2121namespace detail {
2222
2323template < typename P >
2424struct smart_ptr_reference
2525{
26- using type = typename boost::pointee<P>::type &;
26+ using type = boost::pointee_t < P > &;
2727};
2828
2929} // namespace detail
3030
3131template < typename P >
3232struct indirect_reference :
3333 std::conditional<
34- detail::is_incrementable<P >::value,
35- iterator_reference<P >,
36- detail::smart_ptr_reference<P >
34+ detail::is_incrementable< P >::value,
35+ iterator_reference< P >,
36+ detail::smart_ptr_reference< P >
3737 >::type
3838{
3939};
4040
41+ template < typename P >
42+ using indirect_reference_t = typename indirect_reference< P >::type;
43+
4144} // namespace boost
4245
43- #endif // INDIRECT_REFERENCE_DWA200415_HPP
46+ #endif // BOOST_INDIRECT_REFERENCE_DWA200415_HPP
You can’t perform that action at this time.
0 commit comments