Console Library 8.0.0
A header-only library that makes C++ simple
Loading...
Searching...
No Matches
console::BasicInputSettings< CharT > Struct Template Reference

输入/输出流设置,用于自定义 input 函数的输入输出目标。 More...

#include <input.h>

Public Attributes

std::basic_ostream< CharT > & os
 输出提示信息的流
std::basic_istream< CharT > & is
 读取输入的流

Detailed Description

template<class CharT = char>
struct console::BasicInputSettings< CharT >

输入/输出流设置,用于自定义 input 函数的输入输出目标。

Template Parameters
CharT字符类型。

默认使用 std::cout 和 std::cin,可修改以实现重定向或测试。

Member Data Documentation

◆ is

template<class CharT = char>
std::basic_istream<CharT>& console::BasicInputSettings< CharT >::is

读取输入的流

◆ os

template<class CharT = char>
std::basic_ostream<CharT>& console::BasicInputSettings< CharT >::os

输出提示信息的流


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