次の方法で共有


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 クラス

標準テンプレート ライブラリ