Topic: Bidirectional iterator requirements


Author: Kevin_VanHorn@ndsu.nodak.edu (Kevin S. Van Horn)
Date: Mon, 14 Oct 2002 20:13:02 +0000 (UTC)
Raw View
According to the standard, for a bidirectional iterator r, the
expression

*r++

must have type T&, whereas the expression

*r--

is only required to have a type convertible to T.  What is the
rationale for this asymmetry?

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]