Testing C ++ Iterator

I am writing C ++ RandomAccessIterator for a custom array type. Since it does not work with std::sort and a simple int array, I would like to make sure that I executed it correctly.

Do you know about any iterator conformance testing scheme?

I have implemented every possible function or operator , and everything seems to be correct, but I will still miss something with sort() dereferences array::end()

+6
source share
1 answer

Boost.Iterator contains classes for testing concepts.

+4
source

Source: https://habr.com/ru/post/892812/


All Articles