C++ 本地化庫 - num_put



描述

它是一個用於格式化數值的面,而 num_put 標準面將數值格式化為字元序列。其成員 put 由標準輸出流(如 ostream)呼叫,以格式化使用插入運算子(operator<<)插入的數值。

宣告

以下是 std::num_put 的宣告。

C++98

	
template <class charT, class OutputIterator = ostreambuf_iterator<charT> > class num_put;

C++11

template <class charT, class OutputIterator = ostreambuf_iterator<charT> > class num_put;

引數

  • charT - 它是一個字元型別。

  • OutputIterator - 它是一個輸出迭代器型別。

返回值

成員型別

序號 成員型別及描述
1

char_type

它是一個字元型別面。

2

iter_type

它是第二個模板引數。

locale.htm
廣告