mirror of
https://github.com/boostorg/intrusive.git
synced 2025-08-02 22:14:35 +02:00
Add iterator_arrow_result utility
This commit is contained in:
@@ -141,6 +141,14 @@ typename iterator_enable_if_tag_difference_type
|
|||||||
return off;
|
return off;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<class I>
|
||||||
|
typename iterator_traits<I>::pointer iterator_arrow_result(const I &i)
|
||||||
|
{ return i.operator->(); }
|
||||||
|
|
||||||
|
template<class T>
|
||||||
|
T * iterator_arrow_result(T *p)
|
||||||
|
{ return p; }
|
||||||
|
|
||||||
} //namespace intrusive
|
} //namespace intrusive
|
||||||
} //namespace boost
|
} //namespace boost
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user