1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- #ifndef BOOST_GEOMETRY_CORE_REVERSE_DISPATCH_HPP
- #define BOOST_GEOMETRY_CORE_REVERSE_DISPATCH_HPP
- #include <cstddef>
- #include <type_traits>
- #include <boost/geometry/core/geometry_id.hpp>
- namespace boost { namespace geometry
- {
- #ifndef DOXYGEN_NO_DETAIL
- namespace detail
- {
- template <std::size_t GeometryId1, std::size_t GeometryId2>
- struct reverse_dispatch
- : std::integral_constant
- <
- bool,
- (GeometryId1 > GeometryId2)
- >
- {};
- template <std::size_t GeometryId>
- struct reverse_dispatch<GeometryId, GeometryId> : std::false_type {};
- }
- #endif
- template <typename Geometry1, typename Geometry2>
- struct reverse_dispatch : detail::reverse_dispatch
- <
- geometry_id<Geometry1>::type::value,
- geometry_id<Geometry2>::type::value
- >
- {};
- }}
- #endif
|