File indexing completed on 2025-01-18 09:35:06
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_IS_SIMPLE_FAILURE_POLICY_HPP
0011 #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_IS_SIMPLE_FAILURE_POLICY_HPP
0012
0013 #include <boost/geometry/algorithms/validity_failure_type.hpp>
0014
0015
0016 namespace boost { namespace geometry
0017 {
0018
0019
0020 #ifndef DOXYGEN_NO_DETAIL
0021 namespace detail { namespace is_simple
0022 {
0023
0024
0025 struct simplicity_failure_policy
0026 {
0027 template <validity_failure_type Failure>
0028 static inline bool apply()
0029 {
0030 return Failure == no_failure;
0031 }
0032
0033 template <validity_failure_type Failure, typename Data>
0034 static inline bool apply(Data const&)
0035 {
0036 return apply<Failure>();
0037 }
0038
0039 template <validity_failure_type Failure, typename Data1, typename Data2>
0040 static inline bool apply(Data1 const&, Data2 const&)
0041 {
0042 return apply<Failure>();
0043 }
0044 };
0045
0046
0047 }}
0048 #endif
0049
0050 }}
0051
0052
0053 #endif