Пример #1
0
 HPX_HOST_DEVICE HPX_FORCEINLINE
 bool equal(
     iterator_adaptor<OtherDerived, OtherIterator, V, C, R, D> const& x)
 const
 {
     // Maybe re-add with same_distance
     //  static_assert(
     //      (detail::same_category_and_difference<Derived,OtherDerived>::value)
     //  );
     return iterator_ == x.base();
 }
Пример #2
0
 HPX_HOST_DEVICE HPX_FORCEINLINE
 typename base_adaptor_type::difference_type
 distance_to(
     iterator_adaptor<
     OtherDerived, OtherIterator, V, C, R, D
     > const& y) const
 {
     // Maybe re-add with same_distance
     //  static_assert(
     //      (detail::same_category_and_difference<Derived,OtherDerived>::value)
     //  );
     return y.base() - iterator_;
 }
Пример #3
0
 typename base_t::difference_type distance_to(
     iterator_adaptor<OtherDerivedT, OtherIteratorT, V, C, R, D>
     const &x) const
 {
     return x.base().distance(this->base_reference());
 }