Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Boost.Geometry (aka GGL, Generic Geometry Library)
0002 
0003 // Copyright (c) 2015, Oracle and/or its affiliates.
0004 
0005 // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
0006 
0007 // Licensed under the Boost Software License version 1.0.
0008 // http://www.boost.org/users/license.html
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 }} // namespace detail::is_simple
0048 #endif // DOXYGEN_NO_DETAIL
0049 
0050 }} // namespace boost::geometry
0051 
0052 
0053 #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_IS_SIMPLE_FAILURE_POLICY_HPP