This documentation is automatically generated by competitive-verifier/competitive-verifier
#include "tools/is_signed.hpp"
template <typename T>
struct is_signed {
static constexpr bool value;
};
template <typename T>
inline constexpr bool is_signed_v = is_signed<T>::value;
tools::is_signed_v<T>
is equivalent to std::is_signed_v<T> || std::is_same_v<std::remove_cv_t<T>, tools::int128_t>
.
When using libstdc++ with -std=c++...
option, std::is_signed_v<tools::int128_t>
is treated as false
, but with tools::is_signed
, it can be treated as true
.
#ifndef TOOLS_IS_SIGNED_HPP
#define TOOLS_IS_SIGNED_HPP
#include <type_traits>
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;
}
#endif
#line 1 "tools/is_signed.hpp"
#include <type_traits>
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;
}