UgMisc 0.3
Miscellaneous C++ header library
Loading...
Searching...
No Matches
TypesPrinter< OStream > Class Template Reference

#include <samples/samples_types_printer.hpp>

Public Member Functions

 TypesPrinter (OStream &os)
 TypesPrinter (const TypesPrinter &)=default
 TypesPrinter (TypesPrinter &&)=default
template<class T>
const TypesPrinter & print () const
template<class T>
const TypesPrinter & print (T &&) const
template<class T>
const TypesPrinter & operator() () const

Detailed Description

template<class OStream>
class TypesPrinter< OStream >
Note
This is not part of the UgMisc header library: it is only used by the sample programs.

Prints the list of type parameters, given a type which is itself an instance of a template with those type parameters.

The name of a single type is obtained using getTypeName().

Definition at line 70 of file samples_types_printer.hpp.

Constructor & Destructor Documentation

◆ TypesPrinter()

template<class OStream>
TypesPrinter< OStream >::TypesPrinter ( OStream & os)
inline

Definition at line 135 of file samples_types_printer.hpp.

Member Function Documentation

◆ operator()()

template<class OStream>
template<class T>
const TypesPrinter & TypesPrinter< OStream >::operator() ( ) const
inline

Definition at line 152 of file samples_types_printer.hpp.

◆ print() [1/2]

template<class OStream>
template<class T>
const TypesPrinter & TypesPrinter< OStream >::print ( ) const
inline

Definition at line 140 of file samples_types_printer.hpp.

◆ print() [2/2]

template<class OStream>
template<class T>
const TypesPrinter & TypesPrinter< OStream >::print ( T && ) const
inline

Definition at line 147 of file samples_types_printer.hpp.


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