This documentation is automatically generated by competitive-verifier/competitive-verifier
#include "tools/is_integral.hpp"
template <typename T>
struct is_integral {
static constexpr bool value;
};
template <typename T>
inline constexpr bool is_integral_v = is_integral<T>::value;
tools::is_integral_v<T>
is equivalent to std::is_integral_v<T> || std::is_same_v<std::remove_cv_t<T>, tools::int128_t> || std::is_same_v<std::remove_cv_t<T>, tools::uint128_t>
.
When using libstdc++ with -std=c++...
option, std::is_integral_v<tools::int128_t>
and std::is_integral_v<tools::uint128_t>
are treated as false
, but with tools::is_integral
, they can be treated as true
.
#ifndef TOOLS_IS_INTEGRAL_HPP
#define TOOLS_IS_INTEGRAL_HPP
#include <type_traits>
namespace tools {
template <typename T>
struct is_integral : ::std::is_integral<T> {};
template <typename T>
inline constexpr bool is_integral_v = ::tools::is_integral<T>::value;
}
#endif
#line 1 "tools/is_integral.hpp"
#include <type_traits>
namespace tools {
template <typename T>
struct is_integral : ::std::is_integral<T> {};
template <typename T>
inline constexpr bool is_integral_v = ::tools::is_integral<T>::value;
}