#include #include #include "istream_iterator.h" using namespace std; ifstream in("infile"); inline istream_iterator begin() {return ∈} inline istream_iterator end() {return 0;} int main() { for (istream_iterator it = begin(); it != end(); ++it) { cout << *it << "\n"; //cout << it.operator*() << "\n"; } return EXIT_SUCCESS; }