Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ conditional typedef

#include <type_traits>  //include this

typedef std::conditional<sizeof(int) <= 4,
                         std::mt19937,
                         std::mt19937_64>::type Engine;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #conditional #typedef
ADD COMMENT
Topic
Name
6+6 =