// Boost.Geometry Index // // Copyright (c) 2011-2013 Adam Wulkiewicz, Lodz, Poland. // // Use, modification and distribution is subject to the Boost Software License, // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include //#include #ifndef BOOST_GEOMETRY_INDEX_DETAIL_UTILITIES_HPP #define BOOST_GEOMETRY_INDEX_DETAIL_UTILITIES_HPP namespace boost { namespace geometry { namespace index { namespace detail { template static inline void assign_cond(T & l, T const& r, boost::mpl::bool_ const&) { l = r; } template static inline void assign_cond(T &, T const&, boost::mpl::bool_ const&) {} template static inline void move_cond(T & l, T & r, boost::mpl::bool_ const&) { l = ::boost::move(r); } template static inline void move_cond(T &, T &, boost::mpl::bool_ const&) {} template inline void swap_cond(T & l, T & r, boost::mpl::bool_ const&) { ::boost::swap(l, r); } template inline void swap_cond(T &, T &, boost::mpl::bool_ const&) {} }}}} // namespace boost::geometry::index::detail #endif // BOOST_GEOMETRY_INDEX_DETAIL_UTILITIES_HPP