This documentation is automatically generated by competitive-verifier/competitive-verifier
#include "tools/arithmetic.hpp"template <typename T>
concept arithmetic = tools::integral<T> || std::floating_point<T>;
It is a concept that represents arithmetic types.
It also supports tools::int128_t and tools::uint128_t.
#ifndef TOOLS_ARITHMETIC_HPP
#define TOOLS_ARITHMETIC_HPP
#include <concepts>
#include "tools/integral.hpp"
namespace tools {
template <typename T>
concept arithmetic = tools::integral<T> || std::floating_point<T>;
}
#endif
#line 1 "tools/arithmetic.hpp"
#include <concepts>
#line 1 "tools/integral.hpp"
#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;
}
#line 5 "tools/integral.hpp"
namespace tools {
template <typename T>
concept integral = tools::is_integral_v<T>;
}
#line 6 "tools/arithmetic.hpp"
namespace tools {
template <typename T>
concept arithmetic = tools::integral<T> || std::floating_point<T>;
}