This documentation is automatically generated by competitive-verifier/competitive-verifier
#include "tools/is_rational.hpp"
template <typename T>
struct is_rational {
static constexpr bool value;
};
template <typename T>
inline constexpr bool is_rational_v = is_rational<T>::value;
If <T>
is tools::rational
, tools::is_rational<T>::value
is true
.
Otherwise, it is false
.
#ifndef TOOLS_IS_RATIONAL_HPP
#define TOOLS_IS_RATIONAL_HPP
#include <type_traits>
namespace tools {
template <typename T>
struct is_rational : std::false_type {};
template <typename T>
inline constexpr bool is_rational_v = ::tools::is_rational<T>::value;
}
#endif
#line 1 "tools/is_rational.hpp"
#include <type_traits>
namespace tools {
template <typename T>
struct is_rational : std::false_type {};
template <typename T>
inline constexpr bool is_rational_v = ::tools::is_rational<T>::value;
}