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