classPii::If
#include <PiiMetaTemplate.h>
A conditional template.
Description
If condition
is true, If::Type is equal to Then. The template
specialization for condition == false makes Type equal
to Else.
template <class T> void myFunc() { // if T is four bytes, MyType is int, otherwise char typedef Pii::If<sizeof(T) == 4, int, char>::Type MyType; MyType myVal(0); }
Public types
|
typedef Then
|
Add a note
Not a single note added yet. Be the first, add yours.