Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:51:18

0001 #ifndef BOOST_RATIO_DETAIL_IS_RATIO_HPP
0002 #define BOOST_RATIO_DETAIL_IS_RATIO_HPP
0003 
0004 // Copyright 2023 Peter Dimov
0005 // Distributed under the Boost Software License, Version 1.0.
0006 // https://www.boost.org/LICENSE_1_0.txt
0007 
0008 #include <boost/ratio/ratio_fwd.hpp>
0009 #include <type_traits>
0010 #include <cstdint>
0011 
0012 namespace boost
0013 {
0014 namespace ratio_detail
0015 {
0016 
0017 template<class T> struct is_ratio: std::false_type
0018 {
0019 };
0020 
0021 template<std::intmax_t A, std::intmax_t B> struct is_ratio< boost::ratio<A, B> >: std::true_type
0022 {
0023 };
0024 
0025 } // namespace ratio_detail
0026 } // namespace boost
0027 
0028 #endif // BOOST_RATIO_DETAIL_IS_RATIO_HPP