本文整理汇总了C++中reverse_iterator类的典型用法代码示例。如果您正苦于以下问题:C++ reverse_iterator类的具体用法?C++ reverse_iterator怎么用?C++ reverse_iterator使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了reverse_iterator类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: reverse_iterator
__AGENCY_ANNOTATION
reverse_iterator(const reverse_iterator<U>& other)
: current_(other.base())
{}
示例2: SeekTerminal
TokenStack::reverse_iterator TokenStack::SeekTerminal(reverse_iterator p)
{
for ( ; p->IsType(TOKEN_Expr); p++) ;
return p;
}
示例3: distance_to
typename super_t::difference_type
distance_to(reverse_iterator<OtherIterator> const& y) const
{
return this->base_reference() - y.base();
}
示例4:
__AGENCY_ANNOTATION
bool operator>=(const reverse_iterator<Iterator1>& lhs,
const reverse_iterator<Iterator2>& rhs)
{
return lhs.base() >= rhs.base();
}
示例5:
typename boost::intrusive::detail::enable_if_convertible<OtherIt, It, reverse_iterator &>::type
operator=( const reverse_iterator<OtherIt>& r)
{ m_current = r.base(); return *this; }
示例6: reverse_iterator
reverse_iterator(
reverse_iterator<OtherIterator> const& r
, typename enable_if_convertible<OtherIterator, Iterator>::type* = 0
)
: super_t(r.base())
{}
示例7: reverse_iterator
reverse_iterator(const reverse_iterator& r)
: m_current(r.base())
{}
示例8: reverse_iterator
template<class U> reverse_iterator(const reverse_iterator<U>& x) : current(x.base()) { }
示例9: base
difference_type operator-(reverse_iterator& x) const {
return x.base() - base();
};
示例10: reverse_iterator
reverse_iterator(const reverse_iterator<OtherIt>& r)
: m_current(r.base())
{}
示例11: return
bool operator<(reverse_iterator<Iterator> const&l,reverse_iterator<Iterator> const&r){
return (r.base() < l.base());
}
示例12: reverse_iterator
reverse_iterator(const reverse_iterator<_Iter>& __x) : current(__x.base()) { }
示例13: operator
Iterator operator() (const reverse_iterator& i) const {
return boost::prior(i.base());
}