is_variable_precision.hpp 877 B

1234567891011121314151617181920212223242526
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // Copyright 2018 John Maddock. Distributed under the Boost
  3. // Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. #ifndef BOOST_MP_IS_VARIABLE_PRECISION_HPP
  6. #define BOOST_MP_IS_VARIABLE_PRECISION_HPP
  7. #include <boost/type_traits/integral_constant.hpp>
  8. #include <boost/multiprecision/detail/number_base.hpp>
  9. namespace boost { namespace multiprecision { namespace detail {
  10. template <class Backend>
  11. struct is_variable_precision : public false_type
  12. {};
  13. template <class Backend, expression_template_option ExpressionTemplates>
  14. struct is_variable_precision<number<Backend, ExpressionTemplates> > : public is_variable_precision<Backend>
  15. {};
  16. }
  17. }
  18. } // namespace boost::multiprecision::detail
  19. #endif // BOOST_MP_IS_BACKEND_HPP