// Distributed under the Boost Software License Version 1.0 https://www.boost.org/LICENSE_1_0.txt // Copyright Gero Peterhoff #ifndef BOOST_TYPE_TRAITS_IS_NUMBER_HPP #define BOOST_TYPE_TRAITS_IS_NUMBER_HPP #include #include namespace boost { template struct is_number : public std::integral_constant < bool, std::is_floating_point::value || is_integer::value > {}; #if !defined(BOOST_NO_CXX17_INLINE_VARIABLES) template inline constexpr bool is_number_v = is_number::value; #endif } // boost #endif // BOOST_TYPE_TRAITS_IS_NUMBER_HPP