1// Boost.Geometry
2
3// Copyright (c) 2024 Barend Gehrels, Amsterdam, the Netherlands.
4
5// Use, modification and distribution is subject to the Boost Software License,
6// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
7// http://www.boost.org/LICENSE_1_0.txt)
8
9#ifndef BOOST_GEOMETRY_UTIL_BOUNDS_HPP
10#define BOOST_GEOMETRY_UTIL_BOUNDS_HPP
11
12#include <boost/numeric/conversion/bounds.hpp>
13
14namespace boost { namespace geometry { namespace util
15{
16
17// Define a boost::geometry::util::bounds
18// It might be specialized for other numeric types, for example Boost.Rational
19template<class CT>
20struct bounds
21{
22 static CT lowest () { return boost::numeric::bounds<CT>::lowest(); }
23 static CT highest () { return boost::numeric::bounds<CT>::highest(); }
24};
25
26}}} // namespace boost::geometry::util
27
28#endif // BOOST_GEOMETRY_UTIL_BOUNDS_HPP
29

source code of boost/libs/geometry/include/boost/geometry/util/bounds.hpp