mirror of
https://github.com/boostorg/utility.git
synced 2025-05-09 02:44:10 +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];
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user