1 // Copyright 2015-2019 Hans Dembinski
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt
5 // or copy at http://www.boost.org/LICENSE_1_0.txt)
7 #ifndef BOOST_HISTOGRAM_DETAIL_LIMITS_HPP
8 #define BOOST_HISTOGRAM_DETAIL_LIMITS_HPP
17 constexpr T lowest() {
18 return std::numeric_limits<T>::lowest();
22 constexpr double lowest() {
23 return -std::numeric_limits<double>::infinity();
27 constexpr float lowest() {
28 return -std::numeric_limits<float>::infinity();
32 constexpr T highest() {
33 return (std::numeric_limits<T>::max)();
37 constexpr double highest() {
38 return std::numeric_limits<double>::infinity();
42 constexpr float highest() {
43 return std::numeric_limits<float>::infinity();
47 } // namespace histogram