标准库标头 <iomanip>

来自cppreference.com
< cpp‎ | header


 
 
标准库头
通用工具
<any> (C++17)
<bitset>
<bit> (C++20)
<charconv> (C++17)
<expected> (C++23)
<format> (C++20)
<functional>
<optional> (C++17)
<stdbit.h> (C++26)
<tuple> (C++11)
<typeindex> (C++11)
<utility>
<variant> (C++17)
容器
<array> (C++11)
<deque>
<flat_map> (C++23)
<flat_set> (C++23)
<forward_list> (C++11)
<hive> (C++26)
<inplace_vector> (C++26)   
<list>
<map>
<mdspan> (C++23)
<queue>
<set>
<span> (C++20)
<stack>
<unordered_map> (C++11)
<unordered_set> (C++11)
<vector>
迭代器
<iterator>
范围
<generator> (C++23)
<ranges> (C++20)
 

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

函数

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

[编辑] 概要

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