UgMisc 0.3
Miscellaneous C++ header library
Loading...
Searching...
No Matches
samples_types_printer.hpp File Reference
#include <ugmisc/member.hpp>
#include <ugmisc/typelist.hpp>
#include <variant>
#include <tuple>
#include <type_traits>
#include <typeinfo>
#include <utility>

Go to the source code of this file.

Classes

class  TypesPrinter< OStream >

Functions

template<typename T>
auto getTypeName ()
template<class OStream>
 TypesPrinter (OStream &) -> TypesPrinter< OStream >

Function Documentation

◆ getTypeName()

template<typename T>
auto getTypeName ( )
Note
This is not part of the UgMisc header library: it is only used by the sample programs.

The type name is the first of these expressions which is valid:

  • T::sTypeName()
  • T::sTypeName
  • typeid(T).name()

Definition at line 43 of file samples_types_printer.hpp.