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;
}
  

要求

标头: <iterator>

命名空间: std

请参见

参考

istreambuf_iterator Class

标准模板库