proconlib

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

View the Project on GitHub anqooqie/proconlib

:heavy_check_mark: Concept for signed integral types including tools::int128_t (tools/signed_integral.hpp)

template <typename T>
concept signed_integral = tools::integral<T> && tools::is_signed_v<T>;

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

Constraints

Time Complexity

License

Author

Depends on

Required by

Verified with

Code

#ifndef TOOLS_SIGNED_INTEGRAL_HPP
#define TOOLS_SIGNED_INTEGRAL_HPP

#include "tools/integral.hpp"
#include "tools/is_signed.hpp"

namespace tools {
  template <typename T>
  concept signed_integral = tools::integral<T> && tools::is_signed_v<T>;
}

#endif
#line 1 "tools/signed_integral.hpp"



#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 1 "tools/is_signed.hpp"



#line 5 "tools/is_signed.hpp"

namespace tools {
  template <typename T>
  struct is_signed : std::is_signed<T> {};

  template <typename T>
  inline constexpr bool is_signed_v = tools::is_signed<T>::value;
}


#line 6 "tools/signed_integral.hpp"

namespace tools {
  template <typename T>
  concept signed_integral = tools::integral<T> && tools::is_signed_v<T>;
}


Back to top page