Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:35:04

0001 // Boost.Geometry (aka GGL, Generic Geometry Library)
0002 
0003 // Copyright (c) 2014-2020, Oracle and/or its affiliates.
0004 
0005 // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
0006 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
0007 
0008 // Licensed under the Boost Software License version 1.0.
0009 // http://www.boost.org/users/license.html
0010 
0011 #ifndef BOOST_GEOMETRY_ALGORITHS_DETAIL_DISTANCE_IS_COMPARABLE_HPP
0012 #define BOOST_GEOMETRY_ALGORITHS_DETAIL_DISTANCE_IS_COMPARABLE_HPP
0013 
0014 
0015 #include <type_traits>
0016 
0017 #include <boost/geometry/strategies/distance.hpp>
0018 
0019 
0020 namespace boost { namespace geometry
0021 {
0022 
0023 #ifndef DOXYGEN_NO_DETAIL
0024 namespace detail { namespace distance
0025 {
0026 
0027 
0028 // metafunction to determine is a strategy is comparable or not
0029 template <typename Strategy>
0030 struct is_comparable
0031     : std::is_same
0032         <
0033             Strategy,
0034             typename strategy::distance::services::comparable_type
0035               <
0036                   Strategy
0037               >::type
0038         >
0039 {};
0040 
0041 
0042 }} // namespace detail::distance
0043 #endif // DOXYGEN_NO_DETAIL
0044 
0045 }} // namespace boost::geometry
0046 
0047 #endif // BOOST_GEOMETRY_ALGORITHS_DETAIL_DISTANCE_IS_COMPARABLE_HPP