Evo C++ Library v0.5.1
Public Types | Static Public Attributes | List of all members
IsInt< T > Struct Template Reference

#include <evo/meta.h>

Inheritance diagram for IsInt< T >:
Inheritance graph
[legend]

Detailed Description

template<class T>
struct evo::IsInt< T >

Check if type is an integer (whole number) type.

Value member holds result.

Template Parameters
TType to check.
Example
bool b1 = IsInt<char>::value; // true
bool b2 = IsInt<int>::value; // true
bool b3 = IsInt<float>::value; // false
bool b4 = IsInt<unsigned int>::value; // true
bool b5 = IsInt<double>::value; // false

Public Types

typedef evo::StaticBool< val > Type
 This type. More...
 

Static Public Attributes

static const bool value = val
 Result value. More...
 

Member Typedef Documentation

◆ Type

typedef evo::StaticBool<val> Type
inherited

This type.

Member Data Documentation

◆ value

const bool value = val
staticinherited

Result value.


The documentation for this struct was generated from the following file: