Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

testing c++ iterator

I'm writing a c++ RandomAccessIterator for a custom array type. Since it doesn't work with std::sort and a simple int array, I'd like to make sure that I have implemented it correctly.

Do you know of any "iterator conformance testing" framework out there?

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

like image 886
QbProg Avatar asked Jul 15 '11 06:07

QbProg


1 Answers

The Boost.Iterator-library contains classes for concept checking.

like image 183
Björn Pollex Avatar answered Sep 22 '22 02:09

Björn Pollex