Testing InputIterator on the interface
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/iterat... 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_it... 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/de...
So far, I found these:
1) https://github.com/boostorg/test/blob/master/include/boost/test/utils/iterat...
I couldn't find its documentation, and does not seem to what I want.
http://www.boost.org/doc/libs/1_58_0/libs/iterator/doc/index.html Robert Ramey
On Sun, Jul 5, 2015 at 8:10 PM, Robert Ramey
So far, I found these:
1)
https://github.com/boostorg/test/blob/master/include/boost/test/utils/iterat...
I couldn't find its documentation, and does not seem to what I want.
http://www.boost.org/doc/libs/1_58_0/libs/iterator/doc/index.html
Thanks for the input. However, I don't think it documents the input_iterator_facade class of the Boost.Test library. Benedek
On 7/5/15 11:13 AM, Benedek Thaler wrote:
On Sun, Jul 5, 2015 at 8:10 PM, Robert Ramey
wrote: So far, I found these:
1)
https://github.com/boostorg/test/blob/master/include/boost/test/utils/iterat...
I couldn't find its documentation, and does not seem to what I want.
http://www.boost.org/doc/libs/1_58_0/libs/iterator/doc/index.html
Thanks for the input. However, I don't think it documents the input_iterator_facade class of the Boost.Test library.
Right I missed that. But I'm not sure documentation is actually called for. input_iterator_facade inherits almost it's behavior from iterator_facade. So the iterator facade documentation is applicable except for three overides - increment and dereference and the equal operations. These 3 operations are trivial to understand from the code. Robert Ramey
participants (2)
-
Benedek Thaler
-
Robert Ramey