共用方式為


istreambuf_iterator::int_type

提供 istreambuf_iterator的整數型別的型別。

typedef typename traits_type::int_type int_type;

備註

這個型別是 Traits::int_type的同義字。

範例

// istreambuf_iterator_int_type.cpp
// compile with: /EHsc
#include <iterator>
#include <iostream>

int main( )
{
   using namespace std;
   istreambuf_iterator<char>::int_type inttype1 = 100;
   cout << "The inttype1 = " << inttype1 << "." << endl;
}
  

需求

標頭:<迭代器>

命名空間: std

請參閱

參考

istreambuf_iterator 類別

標準樣板程式庫