simplified version of iterator_adaptor, plus fix to indirect iterator

and addition of projection iterator


[SVN r8317]
This commit is contained in:
Jeremy Siek 2000-11-24 19:40:51 +00:00
parent 331a2b8282
commit 353c030918

View File

@ -97,12 +97,10 @@ main()
dummyT* ptr[N];
for (int k = 0; k < N; ++k)
ptr[k] = array + k;
typedef dummyT* DummyPtr;
typedef boost::indirect_iterators<DummyPtr*, const DummyPtr*,
boost::iterator<std::random_access_iterator_tag, DummyPtr>,
boost::iterator<std::random_access_iterator_tag, const DummyPtr>,
boost::iterator<std::random_access_iterator_tag, dummyT>
typedef boost::indirect_iterators<dummyT**, dummyT*, const dummyT*,
boost::iterator<std::random_access_iterator_tag, dummyT*>,
boost::iterator<std::random_access_iterator_tag, dummyT>,
boost::iterator<std::random_access_iterator_tag, const dummyT>
> Indirect;
Indirect::iterator i = ptr;
boost::random_access_iterator_test(i, N, array);