annotate DEPENDENCIES/generic/include/boost/numeric/interval/limits.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +0100
parents c530137014c0
children
rev   line source
Chris@16 1 /* Boost interval/limits.hpp template implementation file
Chris@16 2 *
Chris@16 3 * Copyright 2000 Jens Maurer
Chris@16 4 * Copyright 2002-2003 Hervé Brönnimann, Guillaume Melquiond, Sylvain Pion
Chris@16 5 *
Chris@16 6 * Distributed under the Boost Software License, Version 1.0.
Chris@16 7 * (See accompanying file LICENSE_1_0.txt or
Chris@16 8 * copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 9 */
Chris@16 10
Chris@16 11 #ifndef BOOST_NUMERIC_INTERVAL_LIMITS_HPP
Chris@16 12 #define BOOST_NUMERIC_INTERVAL_LIMITS_HPP
Chris@16 13
Chris@16 14
Chris@16 15 #include <boost/config.hpp>
Chris@16 16 #include <boost/limits.hpp>
Chris@16 17 #include <boost/numeric/interval/detail/interval_prototype.hpp>
Chris@16 18
Chris@16 19 namespace std {
Chris@16 20
Chris@16 21 template<class T, class Policies>
Chris@16 22 class numeric_limits<boost::numeric::interval<T, Policies> >
Chris@16 23 : public numeric_limits<T>
Chris@16 24 {
Chris@16 25 private:
Chris@16 26 typedef boost::numeric::interval<T, Policies> I;
Chris@16 27 typedef numeric_limits<T> bl;
Chris@16 28 public:
Chris@16 29 static I min BOOST_PREVENT_MACRO_SUBSTITUTION () throw() { return I((bl::min)(), (bl::min)()); }
Chris@16 30 static I max BOOST_PREVENT_MACRO_SUBSTITUTION () throw() { return I((bl::max)(), (bl::max)()); }
Chris@16 31 static I epsilon() throw() { return I(bl::epsilon(), bl::epsilon()); }
Chris@16 32
Chris@16 33 BOOST_STATIC_CONSTANT(float_round_style, round_style = round_indeterminate);
Chris@16 34 BOOST_STATIC_CONSTANT(bool, is_iec559 = false);
Chris@16 35
Chris@16 36 static I infinity () throw() { return I::whole(); }
Chris@16 37 static I quiet_NaN() throw() { return I::empty(); }
Chris@16 38 static I signaling_NaN() throw()
Chris@16 39 { return I(bl::signaling_NaN(), bl::signaling_Nan()); }
Chris@16 40 static I denorm_min() throw()
Chris@16 41 { return I(bl::denorm_min(), bl::denorm_min()); }
Chris@16 42 private:
Chris@16 43 static I round_error(); // hide this on purpose, not yet implemented
Chris@16 44 };
Chris@16 45
Chris@16 46 } // namespace std
Chris@16 47
Chris@16 48
Chris@16 49 #endif // BOOST_NUMERIC_INTERVAL_LIMITS_HPP