Answers for "c++ conditional typedef"

C++
0

c++ conditional typedef

#include <type_traits>  //include this

typedef std::conditional<sizeof(int) <= 4,
                         std::mt19937,
                         std::mt19937_64>::type Engine;
Posted by: Guest on October-09-2021

Browse Popular Code Answers by Language