1 // Boost.Geometry (aka GGL, Generic Geometry Library)
3 // Copyright (c) 2007-2015 Barend Gehrels, Amsterdam, the Netherlands.
4 // Copyright (c) 2008-2015 Bruno Lalande, Paris, France.
5 // Copyright (c) 2009-2015 Mateusz Loskot, London, UK.
7 // This file was modified by Oracle on 2015, 2017.
8 // Modifications copyright (c) 2015-2017, Oracle and/or its affiliates.
10 // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
11 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
13 // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
14 // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
16 // Use, modification and distribution is subject to the Boost Software License,
17 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
18 // http://www.boost.org/LICENSE_1_0.txt)
20 #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_NOT_HPP
21 #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_NOT_HPP
23 namespace boost { namespace geometry
26 #ifndef DOXYGEN_NO_DETAIL
33 \brief Structure negating the result of specified policy
34 \tparam Geometry1 \tparam_geometry
35 \tparam Geometry2 \tparam_geometry
37 \param geometry1 \param_geometry
38 \param geometry2 \param_geometry
39 \return Negation of the result of the policy
41 template <typename Policy>
44 template <typename Geometry1, typename Geometry2>
45 static inline bool apply(Geometry1 const& geometry1,
46 Geometry2 const& geometry2)
48 return ! Policy::apply(geometry1, geometry2);
51 template <typename Geometry1, typename Geometry2, typename Strategy>
52 static inline bool apply(Geometry1 const& geometry1,
53 Geometry2 const& geometry2,
54 Strategy const& strategy)
56 return ! Policy::apply(geometry1, geometry2, strategy);
62 #endif // DOXYGEN_NO_DETAIL
64 }} // namespace boost::geometry
66 #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_NOT_HPP