num_put 類別
樣板類別,描述可以做為地區設定 facet 的物件,以控制數值轉換為類型 CharType 的序列。
template<
class CharType,
class OutputIterator = ostreambuf_iterator<CharType>
> class num_put : public locale::facet;
參數
CharType
程式內用於編碼地區設定字元的類型。OutputIterator
數值 put 函式將其輸出寫入其中的迭代器類型。
備註
如同所有地區設定 facet,靜態物件識別碼有初始儲存值零。 第一次嘗試存取它的儲存值時,會在 id 中儲存唯一的正值。
建構函式
num_put 類型物件的建構函式。 |
Typedef
類型,用來描述由地區設定使用的字元。 |
|
描述輸出迭代器的類型。 |
成員函式
虛擬函式,呼叫以將數字轉換成 CharType 序列,表示為特定地區設定格式化的數字。 |
|
將數字轉換成 CharType 序列,表示為特定地區設定格式化的數字。 |
需求
標頭:<locale>
命名空間: std