proconlib

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

View the Project on GitHub anqooqie/proconlib

:heavy_check_mark: Concept for integral types including tools::int128_t and tools::uint128_t (tools/integral.hpp)

template <typename T>
concept integral = tools::is_integral_v<T>;

It is a concept that represents integral types. It also supports tools::int128_t and tools::uint128_t.

Constraints

Time Complexity

License

Author

Depends on

Verified with

Code

#ifndef TOOLS_INTEGRAL_HPP
#define TOOLS_INTEGRAL_HPP

#include "tools/is_integral.hpp"

namespace tools {
  template <typename T>
  concept integral = ::tools::is_integral_v<T>;
}

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


Back to top page