mirror of https://github.com/mono/CppSharp.git
2 changed files with 21 additions and 4 deletions
@ -0,0 +1,16 @@
@@ -0,0 +1,16 @@
|
||||
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> |
||||
{ }; |
Loading…
Reference in new issue