Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 09:42:16

0001 // Boost.Geometry (aka GGL, Generic Geometry Library)
0002 
0003 // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
0004 // Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
0005 // Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
0006 
0007 // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
0008 // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
0009 
0010 // Use, modification and distribution is subject to the Boost Software License,
0011 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
0012 // http://www.boost.org/LICENSE_1_0.txt)
0013 
0014 #ifndef BOOST_GEOMETRY_UTIL_CLOSURE_AS_BOOL_HPP
0015 #define BOOST_GEOMETRY_UTIL_CLOSURE_AS_BOOL_HPP
0016 
0017 #include <boost/geometry/core/closure.hpp>
0018 
0019 
0020 namespace boost { namespace geometry
0021 {
0022 
0023 
0024 template<closure_selector Closure>
0025 struct closure_as_bool
0026 {};
0027 
0028 
0029 template<>
0030 struct closure_as_bool<closed>
0031 {
0032     static const bool value = true;
0033 };
0034 
0035 
0036 template<>
0037 struct closure_as_bool<open>
0038 {
0039     static const bool value = false;
0040 };
0041 
0042 
0043 }} // namespace boost::geometry
0044 
0045 
0046 #endif // BOOST_GEOMETRY_UTIL_CLOSURE_AS_BOOL_HPP