mirror of https://github.com/mono/CppSharp.git
c-sharpdotnetmonobindingsbridgecclangcpluspluscppsharpglueinteropparserparsingpinvokeswigsyntax-treevisitorsxamarinxamarin-bindings
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
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> |
|
{ };
|
|
|