名稱空間
變體
操作

標準庫標頭檔案 <iomanip>

來自 cppreference.com
 
 
標準庫標頭檔案
演算法
<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> (直到 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('\\'));
}