1#ifndef BOOST_RATIO_DETAIL_IS_RATIO_HPP
2#define BOOST_RATIO_DETAIL_IS_RATIO_HPP
3
4// Copyright 2023 Peter Dimov
5// Distributed under the Boost Software License, Version 1.0.
6// https://www.boost.org/LICENSE_1_0.txt
7
8#include <boost/ratio/ratio_fwd.hpp>
9#include <type_traits>
10#include <cstdint>
11
12namespace boost
13{
14namespace ratio_detail
15{
16
17template<class T> struct is_ratio: std::false_type
18{
19};
20
21template<std::intmax_t A, std::intmax_t B> struct is_ratio< boost::ratio<A, B> >: std::true_type
22{
23};
24
25} // namespace ratio_detail
26} // namespace boost
27
28#endif // BOOST_RATIO_DETAIL_IS_RATIO_HPP
29

source code of boost/libs/ratio/include/boost/ratio/detail/is_ratio.hpp