Topic: equality and inequality operations need not be defined for output iterators


Author: "subramanian100in@yahoo.com, India" <subramanian100in@yahoo.com>
Date: Thu, 12 Nov 2009 11:24:14 CST
Raw View
The standard says that equality and inequality operations might not be
defined for output iterators. I think the reason for this is that the
standard library algorithms which use output iterators, will only
write  values into the output iterators. Thus after writing each value
into the output iterator, the algorithms need only be able to
increment the output iterator to go to the next location. The
algorithms need not require to perform any equality or inequality
checking at all with writing to output iterators.

The equality and inequality need not be defined for output iterators
because they are simply not used by the standard library algorithms.

Is this understanding of mine is correct ?

Kindly clarify.

Thanks
V.Subramanian

--
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@netlab.cs.rpi.edu]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]