开发者

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()


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜