mirror of
https://github.com/boostorg/iterator.git
synced 2025-10-08 15:00:54 +02:00
18 lines
411 B
C++
18 lines
411 B
C++
#include <boost/iterator/indirect_iterator.hpp>
|
|
#include <boost/iterator/reverse_iterator.hpp>
|
|
#include <boost/concept_check.hpp>
|
|
#include <boost/cstdlib.hpp>
|
|
#include <list>
|
|
|
|
int main()
|
|
{
|
|
{
|
|
typedef boost::reverse_iterator<std::list<int*>::iterator> rev_iter;
|
|
typedef boost::indirect_iterator<std::list<int*>::iterator> ind_iter;
|
|
|
|
ind_iter() == rev_iter();
|
|
}
|
|
|
|
return boost::exit_success;
|
|
}
|