ptc-print
A C++17 header-only library for custom printing to the output stream (inspired by the Python print function).
Public Member Functions | Static Public Attributes | List of all members
ptc::Print< T_str >::select_cout< T > Struct Template Reference

Struct used to define a way to template the choice of the "std::cout" object in order to be "std::cout" for "char" type or "std::wcout" for "wchar_t" type. More...

#include <print.hpp>

Public Member Functions

std::ostream & cout
 
std::wostream & cout
 

Static Public Attributes

static std::basic_ostream< T > & cout
 

Detailed Description

template<class T_str>
template<class T>
struct ptc::Print< T_str >::select_cout< T >

Struct used to define a way to template the choice of the "std::cout" object in order to be "std::cout" for "char" type or "std::wcout" for "wchar_t" type.

Template Parameters
TThe template type of the "std::cout" object (char, wchar_t, ...).

Member Function Documentation

◆ cout() [1/2]

std::ostream & ptc::Print::select_cout< char >::cout
inline

◆ cout() [2/2]

std::wostream & ptc::Print::select_cout< wchar_t >::cout
inline

Member Data Documentation

◆ cout

template<class T_str >
template<class T >
std::basic_ostream<T>& ptc::Print< T_str >::select_cout< T >::cout
static

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