Remove invalid check in find_first_of

Chris Jefferson caj@cs.york.ac.uk
Thu Oct 28 22:03:00 GMT 2004


Lets see if I can get a changelog and patch out perfectly this time!

std::find_first_of(iterator1, iterator1, iterator2, iterator2, predicate)
has a check to see if "*iterator1 == *iterator2" is valid. However, this 
isn't actually necessasary, all we need is that predicate(*iterator1, 
*iterator2) is valid (which is also checked for).

This patch therefore removes that invalid check.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: find_first_of.cc
Type: text/x-c++src
Size: 1076 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20041028/c604e25c/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_find_first_of
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20041028/c604e25c/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_find_first_of
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20041028/c604e25c/attachment-0001.ksh>


More information about the Libstdc++ mailing list