fork download
  1. #include <typeinfo>
  2. #include <type_traits>
  3. #include <iostream>
  4.  
  5. int main()
  6. {
  7. using type = decltype(std::ios_base::fixed) ;
  8.  
  9. std::cout << "name: " << typeid(type).name() << '\n'
  10. << std::boolalpha
  11. << "integral type? " << std::is_integral<type>::value << '\n'
  12. << "enumeration type? " << std::is_enum<type>::value << '\n' ;
  13. }
  14.  
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
name: St13_Ios_Fmtflags
integral type? false
enumeration type? true