Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
24.istream.iterator.ops.stdcxx-321.cpp
Go to the documentation of this file.
1
29#include <cassert>
30#include <iterator>
31
32// no iostream header should be #included in this test
33#ifdef _RWSTD_ISTREAM_INCLUDED
34# error "<istream> unexpectedly #included"
35#endif // _RWSTD_ISTREAM_INCLUDED
36
37int main ()
38{
39 const std::istream_iterator<char, char> it;
40 const std::istream_iterator<char, char> eos;
41
42 // istream_iterator equality operator should compile
43 // when the <istream> header isn't #included (and
44 // the iterator should compare equal to the end of
45 // stream iterator)
46 assert (it == eos);
47
48 return 0;
49}
#define assert(expr)
Definition _cassert.h:40