Iterators wrappers?
Martin Sebor
sebor@roguewave.com
Wed Aug 11 17:37:00 GMT 2004
Chris Jefferson wrote:
> Hello,
>
> I am currently working on some test cases for some functions in the
> algorithm header. I wondered if there exists any "exact iterator
> checkers",
Here's an input iterator I've used to test our algorithms. It lets
you wrap an ordinary pointer (not another iterator) into a sequence
of elements. We don't use container iterators (or any other parts
of the library) when testing algorithms to prevent bugs in those
areas from causing false negatives (or positives) in the tests.
Martin
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: inputiter.h
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20040811/fd64661e/attachment.h>
More information about the Libstdc++
mailing list