mirror of
https://github.com/boostorg/iterator.git
synced 2025-05-12 14:01:37 +00:00
Reinstated reverse_iterator_pair_generator
[SVN r9264]
This commit is contained in:
parent
8d8f828da5
commit
e9d9bdbb10
@ -12,6 +12,8 @@
|
|||||||
//
|
//
|
||||||
// Revision History:
|
// Revision History:
|
||||||
|
|
||||||
|
// 18 Feb 2001 David Abrahams
|
||||||
|
// Reinstated reverse_iterator_pair_generator
|
||||||
// 16 Feb 2001 David Abrahams
|
// 16 Feb 2001 David Abrahams
|
||||||
// Add an implicit conversion operator to operator_arrow_proxy
|
// Add an implicit conversion operator to operator_arrow_proxy
|
||||||
// as CW and BCC workarounds.
|
// as CW and BCC workarounds.
|
||||||
@ -861,6 +863,21 @@ struct reverse_iterator_generator
|
|||||||
Value,Reference,Pointer,Category,Distance> type;
|
Value,Reference,Pointer,Category,Distance> type;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template <class BidirectionalIterator,
|
||||||
|
class Value = BOOST_ARG_DEPENDENT_TYPENAME boost::detail::iterator_traits<BidirectionalIterator>::value_type>
|
||||||
|
struct reverse_iterator_pair_generator
|
||||||
|
{
|
||||||
|
typedef boost::detail::iterator_traits<BidirectionalIterator>::iterator_category category;
|
||||||
|
typedef iterator_adaptor<BidirectionalIterator,reverse_iterator_policies,
|
||||||
|
Value, Value&, Value*
|
||||||
|
typename boost::detail::iterator_traits<BidirectionalIterator>::iterator_category,
|
||||||
|
typename boost::detail::iterator_traits<BidirectionalIterator>::difference_type> iterator;
|
||||||
|
typedef iterator_adaptor<BidirectionalIterator,reverse_iterator_policies,
|
||||||
|
Value, const Value&, const Value*
|
||||||
|
typename boost::detail::iterator_traits<BidirectionalIterator>::iterator_category,
|
||||||
|
typename boost::detail::iterator_traits<BidirectionalIterator>::difference_type> const_iterator;
|
||||||
|
};
|
||||||
|
|
||||||
template <class BidirectionalIterator>
|
template <class BidirectionalIterator>
|
||||||
inline typename reverse_iterator_generator<BidirectionalIterator>::type
|
inline typename reverse_iterator_generator<BidirectionalIterator>::type
|
||||||
make_reverse_iterator(BidirectionalIterator base)
|
make_reverse_iterator(BidirectionalIterator base)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user