示例#1
0
 __AGENCY_ANNOTATION
 reverse_iterator(const reverse_iterator<U>& other)
   : current_(other.base())
 {}
示例#2
0
文件: Token.cpp 项目: gura-lang/gura
TokenStack::reverse_iterator TokenStack::SeekTerminal(reverse_iterator p)
{
	for ( ; p->IsType(TOKEN_Expr); p++) ;
	return p;
}
示例#3
0
 typename super_t::difference_type
 distance_to(reverse_iterator<OtherIterator> const& y) const
 {
     return this->base_reference() - y.base();
 }
示例#4
0
__AGENCY_ANNOTATION
bool operator>=(const reverse_iterator<Iterator1>& lhs,
                const reverse_iterator<Iterator2>& rhs)
{
  return lhs.base() >= rhs.base();
}
 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
0
 reverse_iterator(
     reverse_iterator<OtherIterator> const& r
     , typename enable_if_convertible<OtherIterator, Iterator>::type* = 0
     )
     : super_t(r.base())
 {}
 reverse_iterator(const reverse_iterator& r)
    : m_current(r.base())
 {}
 reverse_iterator( const reverse_iterator<OtherIt>& r
                 , typename boost::intrusive::detail::enable_if_convertible<OtherIt, It>::type* =0
                 )
    : m_current(r.base())
 {}
示例#9
0
template<class U> reverse_iterator(const reverse_iterator<U>& x) : current(x.base()) { }
示例#10
0
 difference_type operator-(reverse_iterator& x) const {
     return x.base() - base();
 };
示例#11
0
 reverse_iterator(const reverse_iterator<OtherIt>& r)
    : m_current(r.base())
 {}
示例#12
0
 bool operator<(reverse_iterator<Iterator> const&l,reverse_iterator<Iterator> const&r){
     return (r.base() < l.base());
 }
示例#13
0
 bool operator!=(reverse_iterator<Iterator> const&l,reverse_iterator<Iterator> const&r){
     return (l.base() != r.base());
 }
示例#14
0
 reverse_iterator(const reverse_iterator<_Iter>& __x) : current(__x.base()) { }
示例#15
0
 Iterator operator() (const reverse_iterator& i) const {
   return boost::prior(i.base());
 }