#include #include #include "istream_iterator_date.h" using namespace std; int main(int argc, char **argv) { ifstream ifs("infile"); if (!ifs) { cerr << argv[0] << ": couldn't open infile\n"; return EXIT_FAILURE; } cout << boolalpha; istream_iterator_date it1(ifs); cout << (it1 == ++it1) << "\n"; istream_iterator_date it2 = it1; cout << ( it1 == it2) << "\n"; cout << (++it1 == ++it2) << "\n"; return EXIT_SUCCESS; }