Evo C++ Library v0.5.1
Public Types | List of all members
StaticIf< b, T, F > Struct Template Reference

#include <evo/meta.h>

Detailed Description

template<bool b, class T, class F>
struct evo::StaticIf< b, T, F >

Static conditional type.

This returns one of two types depending on evaluation of given expression. Result is in Type member.

Template Parameters
bExpression to evaluate (must be valid compile-time expression).
TType to use if true.
FType to use if false.
Example
StaticIf<true,int,char>::Type foo1; // type is int
StaticIf<false,int,char>::Type foo2; // type is char

Public Types

typedef T Type
 Result type (T or F) More...
 

Member Typedef Documentation

◆ Type

typedef T Type

Result type (T or F)


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