mirror of
https://github.com/boostorg/utility.git
synced 2025-05-09 15:04:00 +00:00
simplified version of iterator_adaptor, plus fix to indirect iterator
and addition of projection iterator [SVN r8317]
This commit is contained in:
parent
331a2b8282
commit
353c030918
@ -97,12 +97,10 @@ main()
|
|||||||
dummyT* ptr[N];
|
dummyT* ptr[N];
|
||||||
for (int k = 0; k < N; ++k)
|
for (int k = 0; k < N; ++k)
|
||||||
ptr[k] = array + k;
|
ptr[k] = array + k;
|
||||||
|
typedef boost::indirect_iterators<dummyT**, dummyT*, const dummyT*,
|
||||||
typedef dummyT* DummyPtr;
|
boost::iterator<std::random_access_iterator_tag, dummyT*>,
|
||||||
typedef boost::indirect_iterators<DummyPtr*, const DummyPtr*,
|
boost::iterator<std::random_access_iterator_tag, dummyT>,
|
||||||
boost::iterator<std::random_access_iterator_tag, DummyPtr>,
|
boost::iterator<std::random_access_iterator_tag, const dummyT>
|
||||||
boost::iterator<std::random_access_iterator_tag, const DummyPtr>,
|
|
||||||
boost::iterator<std::random_access_iterator_tag, dummyT>
|
|
||||||
> Indirect;
|
> Indirect;
|
||||||
Indirect::iterator i = ptr;
|
Indirect::iterator i = ptr;
|
||||||
boost::random_access_iterator_test(i, N, array);
|
boost::random_access_iterator_test(i, N, array);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user