Boost logo

Boost :

Subject: [boost] Testing InputIterator on the interface
From: Benedek Thaler (thalerbenedek_at_[hidden])
Date: 2015-07-05 13:20:41


Hi,

I'd like to verify my methods accepting an input range (two iterators
modelling InputIterator) do a single pass over the range at most.

I'd like to have an iterator adaptor, which erases the visited element upon
incrementing.

So far, I found these:

1)
https://github.com/boostorg/test/blob/master/include/boost/test/utils/iterator/input_iterator_facade.hpp

I couldn't find its documentation, and does not seem to what I want.

2)
https://github.com/boostorg/container/blob/master/test/input_from_forward_iterator.hpp

Despite the name, still not something I want. I'm developing a
Boost.Container class [0], so using container/test would be okay.

Is there such a thing ready somewhere or shall I roll my own?

Thanks,
Benedek

[0]:
https://github.com/erenon/container/blob/devector/include/boost/container/devector.hpp


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk