This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
RE: [libstdc++] Doxygen markup for algorithms
- From: Kenny Simpson <theonetruekenny at yahoo dot com>
- To: phil at jaj dot com, libstdc++ at gcc dot gnu dot org
- Date: Sun, 10 Feb 2002 20:44:13 -0800 (PST)
- Subject: RE: [libstdc++] Doxygen markup for algorithms
I believe the description for std::for_each is overly
restrictive. In particular, the requirement that
* @p f must not modify its argument.
Not the the old draft Standard had this restriction,
but the final version does not. (implied from issue
290 - don't have my copy of the Standard in front of
me).
See
http://std.dkuug.dk/jtc1/sc22/wg21/docs/lwg-active.html#290
And also see Section 9.2.2: Nonmodifying Algorithms
and Modifying Algorithms in Josutis' Book where he
states that the function object passed to for_each may
modify the element.
-Kenny
__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com