numeric.hpp 567 B

1234567891011121314151617181920212223
  1. #ifndef BOOST_NUMERIC_CONCEPT_NUMERIC_HPP
  2. #define BOOST_NUMERIC_CONCEPT_NUMERIC_HPP
  3. // Copyright (c) 2021 Robert Ramey
  4. //
  5. // Distributed under the Boost Software License, Version 1.0. (See
  6. // accompanying file LICENSE_1_0.txt or copy at
  7. // http://www.boost.org/LICENSE_1_0.txt)
  8. #include <limits>
  9. #include <cstdint>
  10. #include <type_traits>
  11. namespace boost {
  12. namespace safe_numerics {
  13. template<class T>
  14. using Numeric = std::integral_constant<bool, std::numeric_limits<T>::is_specialized>;
  15. } // safe_numerics
  16. } // boost
  17. #endif // BOOST_NUMERIC_CONCEPT_NUMERIC_HPP