1 // Boost.Geometry Index
3 // Copyright (c) 2011-2013 Adam Wulkiewicz, Lodz, Poland.
5 // Use, modification and distribution is subject to the Boost Software License,
6 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
9 #include <boost/swap.hpp>
10 //#include <boost/type_traits/is_empty.hpp>
12 #ifndef BOOST_GEOMETRY_INDEX_DETAIL_UTILITIES_HPP
13 #define BOOST_GEOMETRY_INDEX_DETAIL_UTILITIES_HPP
15 namespace boost { namespace geometry { namespace index { namespace detail {
18 static inline void assign_cond(T & l, T const& r, boost::mpl::bool_<true> const&)
24 static inline void assign_cond(T &, T const&, boost::mpl::bool_<false> const&) {}
27 static inline void move_cond(T & l, T & r, boost::mpl::bool_<true> const&)
33 static inline void move_cond(T &, T &, boost::mpl::bool_<false> const&) {}
35 template <typename T> inline
36 void swap_cond(T & l, T & r, boost::mpl::bool_<true> const&)
41 template <typename T> inline
42 void swap_cond(T &, T &, boost::mpl::bool_<false> const&) {}
44 }}}} // namespace boost::geometry::index::detail
46 #endif // BOOST_GEOMETRY_INDEX_DETAIL_UTILITIES_HPP