proconlib

This documentation is automatically generated by competitive-verifier/competitive-verifier

View the Project on GitHub anqooqie/proconlib

:heavy_check_mark: Check whether T is tools::rational (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.

Constraints

Time Complexity

License

Author

Required by

Verified with

Code

#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;
}


Back to top page