命名空间
变体
操作

标准库头文件 <iomanip>

来自 cppreference.cn
< cpp‎ | 头文件
 
 
标准库头文件
算法
<algorithm>
<numeric>
字符串
<cctype>
<cstring>
<cuchar> (C++11)
<cwchar>
<cwctype>
<string_view> (C++17)
<string>
文本处理
<clocale>
<codecvt> (C++11/17/26*)
<locale>
<regex> (C++11)
<text_encoding> (C++26)   
数值
<cfenv> (C++11)
<cmath>
<complex>
<linalg> (C++26)
<numbers> (C++20)
<random> (C++11)
<simd> (C++26)
<valarray>
时间
<chrono> (C++11)
<ctime>
C 兼容性
<ccomplex> (C++11/17/20*)
<ciso646> (until C++20)
<cstdalign> (C++11/17/20*)
<cstdbool> (C++11/17/20*)
<ctgmath> (C++11/17/20*)
 

此头文件是输入/输出库的一部分。

函数

清除指定的 ios_base 标志
(函数) [编辑]
设置指定的 ios_base 标志
(函数) [编辑]
更改用于整数 I/O 的基数
(函数) [编辑]
更改填充字符
(函数模板) [编辑]
更改浮点精度
(函数) [编辑]
更改下一个输入/输出字段的宽度
(函数) [编辑]
(C++11)
解析货币值
(函数模板) [编辑]
(C++11)
格式化并输出货币值
(函数模板) [编辑]
(C++11)
解析指定格式的日期/时间值
(函数模板) [编辑]
(C++11)
根据指定格式格式化并输出日期/时间值
(函数模板) [编辑]
(C++14)
插入和提取带有嵌入空格的带引号字符串
(函数模板) [编辑]

[编辑] 概要

namespace std {
  /*unspecified*/ resetiosflags(ios_base::fmtflags mask);
  /*unspecified*/ setiosflags  (ios_base::fmtflags mask);
  /*unspecified*/ setbase(int base);
  template<class CharT> /*unspecified*/ setfill(CharT c);
  /*unspecified*/ setprecision(int n);
  /*unspecified*/ setw(int n);
  template<class MoneyT> /*unspecified*/ get_money(MoneyT& mon, bool intl = false);
  template<class MoneyT> /*unspecified*/ put_money(const MoneyT& mon, bool intl = false);
  template<class CharT> /*unspecified*/ get_time(tm* tmb, const CharT* fmt);
  template<class CharT> /*unspecified*/ put_time(const tm* tmb, const CharT* fmt);
 
  template<class CharT>
    /*unspecified*/ quoted(const CharT* s, CharT delim = CharT('"'),
                           CharT escape = CharT('\\'));
 
  template<class CharT, class Traits, class Allocator>
    /*unspecified*/ quoted(const basic_string<CharT, Traits, Allocator>& s,
               CharT delim = CharT('"'), CharT escape = CharT('\\'));
 
  template<class CharT, class Traits, class Allocator>
    /*unspecified*/ quoted(basic_string<CharT, Traits, Allocator>& s,
               CharT delim = CharT('"'), CharT escape = CharT('\\'));
 
  template<class CharT, class Traits>
    /*unspecified*/ quoted(basic_string_view<CharT, Traits> s,
               CharT delim = CharT('"'), CharT escape = CharT('\\'));
}