123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_EQUALS_POINT_POINT_HPP
- #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_EQUALS_POINT_POINT_HPP
- #include <type_traits>
- #include <boost/geometry/strategies/detail.hpp>
- namespace boost { namespace geometry
- {
- #ifndef DOXYGEN_NO_DETAIL
- namespace detail { namespace equals
- {
- template
- <
- typename Point1, typename Point2, typename Strategy,
- std::enable_if_t<strategies::detail::is_umbrella_strategy<Strategy>::value, int> = 0
- >
- inline bool equals_point_point(Point1 const& point1, Point2 const& point2,
- Strategy const& strategy)
- {
- typedef decltype(strategy.relate(point1, point2)) strategy_type;
- return strategy_type::apply(point1, point2);
- }
- template
- <
- typename Point1, typename Point2, typename Strategy,
- std::enable_if_t<! strategies::detail::is_umbrella_strategy<Strategy>::value, int> = 0
- >
- inline bool equals_point_point(Point1 const& point1, Point2 const& point2,
- Strategy const& )
- {
- return Strategy::apply(point1, point2);
- }
- }}
- #endif
- }}
- #endif
|