Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-04-26 08:34:29

0001 // Boost.Geometry
0002 
0003 // Copyright (c) 2024 Barend Gehrels, Amsterdam, the Netherlands.
0004 
0005 // Use, modification and distribution is subject to the Boost Software License,
0006 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
0007 // http://www.boost.org/LICENSE_1_0.txt)
0008 
0009 #ifndef BOOST_GEOMETRY_UTIL_BOUNDS_HPP
0010 #define BOOST_GEOMETRY_UTIL_BOUNDS_HPP
0011 
0012 #include <boost/numeric/conversion/bounds.hpp>
0013 
0014 namespace boost { namespace geometry { namespace util
0015 {
0016 
0017 // Define a boost::geometry::util::bounds
0018 // It might be specialized for other numeric types, for example Boost.Rational
0019 template<class CT>
0020 struct bounds
0021 {
0022   static CT lowest  () { return boost::numeric::bounds<CT>::lowest(); }
0023   static CT highest () { return boost::numeric::bounds<CT>::highest(); }
0024 };
0025 
0026 }}} // namespace boost::geometry::util
0027 
0028 #endif // BOOST_GEOMETRY_UTIL_BOUNDS_HPP