简体   繁体   中英

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM