mxnet
dmlc::IfThenElseType< cond, Then, Else > Struct Template Reference

template to select type based on condition For example, IfThenElseType<true, int, float>::Type will give int More...

#include <type_traits.h>

Collaboration diagram for dmlc::IfThenElseType< cond, Then, Else >:
Collaboration graph

Detailed Description

template<bool cond, typename Then, typename Else>
struct dmlc::IfThenElseType< cond, Then, Else >

template to select type based on condition For example, IfThenElseType<true, int, float>::Type will give int

Template Parameters
condthe condition
Thenthe typename to be returned if cond is true
Elsetypename to be returned if cond is false

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