arsenalgear-cpp
A library containing general purpose C++ utils.
Public Member Functions | Static Public Attributes | List of all members
agr::select_cin< T > Struct Template Reference

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

#include <stream.hpp>

Public Member Functions

std::istream & cin
 
std::wistream & cin
 

Static Public Attributes

static std::basic_istream< T > & cin
 

Detailed Description

template<class T>
struct agr::select_cin< T >

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

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

Member Function Documentation

◆ cin() [1/2]

std::istream & agr::select_cin< char >::cin
inline

◆ cin() [2/2]

std::wistream & agr::select_cin< wchar_t >::cin
inline

Member Data Documentation

◆ cin

template<class T >
std::basic_istream<T>& agr::select_cin< T >::cin
static

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