]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | // Boost.Geometry (aka GGL, Generic Geometry Library) |
2 | ||
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. | |
6 | ||
7 | // This file was modified by Oracle on 2015. | |
8 | // Modifications copyright (c) 2015, Oracle and/or its affiliates. | |
9 | ||
10 | // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle | |
11 | ||
12 | // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library | |
13 | // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands. | |
14 | ||
15 | // Use, modification and distribution is subject to the Boost Software License, | |
16 | // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at | |
17 | // http://www.boost.org/LICENSE_1_0.txt) | |
18 | ||
19 | #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_NOT_HPP | |
20 | #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_NOT_HPP | |
21 | ||
22 | namespace boost { namespace geometry | |
23 | { | |
24 | ||
25 | #ifndef DOXYGEN_NO_DETAIL | |
26 | namespace detail | |
27 | { | |
28 | ||
29 | ||
30 | ||
31 | /*! | |
32 | \brief Structure negating the result of specified policy | |
33 | \tparam Geometry1 \tparam_geometry | |
34 | \tparam Geometry2 \tparam_geometry | |
35 | \tparam Policy | |
36 | \param geometry1 \param_geometry | |
37 | \param geometry2 \param_geometry | |
38 | \return Negation of the result of the policy | |
39 | */ | |
40 | template <typename Policy> | |
41 | struct not_ | |
42 | { | |
43 | template <typename Geometry1, typename Geometry2> | |
44 | static inline bool apply(Geometry1 const& geometry1, | |
45 | Geometry2 const& geometry2) | |
46 | { | |
47 | return ! Policy::apply(geometry1, geometry2); | |
48 | } | |
49 | }; | |
50 | ||
51 | ||
52 | } // namespace detail | |
53 | #endif // DOXYGEN_NO_DETAIL | |
54 | ||
55 | }} // namespace boost::geometry | |
56 | ||
57 | #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_NOT_HPP |