Tools and libraries to glue C/C++ APIs to high-level languages
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

16 lines
337 B

template<typename T, T Value>
struct integral_constant
{
static constexpr T value = Value;
};
template<bool Value>
using bool_constant = integral_constant<bool, Value>;
template<class T>
struct is_integral : integral_constant<bool, false>
{ };
template<typename T>
struct is_arithmetic : bool_constant<is_integral<T>::value>
{ };