C++ STL istreambuf_iterator::int_type code sample

 

Compiler: Visual C++ Express Edition 2005

Compiled on Platform: Windows XP Pro SP2

Header file: Standard

Additional project setting: Set project to be compiled as C++

Project -> your_project_name Properties -> Configuration Properties -> C/C++ -> Advanced -> Compiled As: Compiled as C++ Code (/TP)

Other info: none

To do: Using the C++  as a type that provides an integer type for an istreambuf_iterator in C++ programming

To show: How to use the C++ int_type as a type that provides an integer type for an istreambuf_iterator in C++ programming

 

// C++ STL istreambuf_iterator, int_type

#include <iterator>

#include <iostream>

using namespace std;

 

int main(void)

{

cout<<"Operation: int_type intype = 77"<<endl;

istreambuf_iterator<char>::int_type intype = 77;

cout<<"The int_type type = "<<intype<<endl;

return 0;

}

 

Output examples:

 

Operation: int_type intype = 77

The int_type type = 77

Press any key to continue . . .

 

 

C and C++ Programming Resources | C & C++ Code Example Index