Topic: wouldn't it be nice to have the value_type for each


Author: "Steven E. Harris" <seharris@raytheon.com>
Date: Fri, 2 Aug 2002 15:50:27 GMT
Raw View
"Matthias Kronenberger" <mkronen@rhrk.uni-kl.de> writes:

> If not, wouldn't it be nice to supply OutputIterators with
> value_type?

The model is usually more like, "Try to assign whatever you have to
the output iterator. If it compiles, you have a valid value type in
hand, or some valid conversion exists. If it doesn't compile, you
don't have a valid value type."

Can you give an example where one would need to know the value_type of
the output iterator?

--
Steven E. Harris        :: seharris@raytheon.com
Raytheon                :: http://www.raytheon.com

---
[ 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                       ]