]> git.sesse.net Git - casparcg/blob - dependencies/boost/boost/geometry/algorithms/detail/calculate_null.hpp
Manually merged pull request #222
[casparcg] / dependencies / boost / boost / geometry / algorithms / detail / calculate_null.hpp
1 // Boost.Geometry (aka GGL, Generic Geometry Library)
2
3 // Copyright (c) 2007-2011 Barend Gehrels, Amsterdam, the Netherlands.
4 // Copyright (c) 2008-2011 Bruno Lalande, Paris, France.
5 // Copyright (c) 2009-2011 Mateusz Loskot, London, UK.
6
7 // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
8 // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
9
10 // Use, modification and distribution is subject to the Boost Software License,
11 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
12 // http://www.boost.org/LICENSE_1_0.txt)
13
14 #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_CALCULATE_NULL_HPP
15 #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_CALCULATE_NULL_HPP
16
17 namespace boost { namespace geometry
18 {
19
20 #ifndef DOXYGEN_NO_DETAIL
21 namespace detail
22 {
23
24 template<typename ReturnType, typename Geometry, typename Strategy>
25 struct calculate_null
26 {
27     static inline ReturnType apply(Geometry const& , Strategy const&)
28     {
29         return ReturnType();
30     }
31 };
32
33 } // namespace detail
34 #endif // DOXYGEN_NO_DETAIL
35
36 }} // namespace boost::geometry
37
38 #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_CALCULATE_NULL_HPP