Skip to content

Commit

Permalink
include/oneapi/dpl/pstl/experimental/internal/for_loop_impl.h - repla…
Browse files Browse the repository at this point in the history
…ce std::iterator_traits to ::std::iterator_traits
  • Loading branch information
Sergey Kopienko committed Mar 12, 2024
1 parent 19665c3 commit 88c1667
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/oneapi/dpl/pstl/experimental/internal/for_loop_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ struct __difference<_Ip, ::std::enable_if_t<::std::is_integral_v<_Ip>>>
template <typename _Ip>
struct __difference<_Ip, ::std::enable_if_t<!::std::is_integral_v<_Ip>>>
{
using __type = typename std::iterator_traits<_Ip>::difference_type;
using __type = typename ::std::iterator_traits<_Ip>::difference_type;
};

// This type is used as a stride value when it's known that stride == 1 at compile time(the case of for_loop and for_loop_n).
Expand Down Expand Up @@ -232,7 +232,7 @@ __pattern_for_loop(_ExecutionPolicy&& __exec, _Ip __first, _Ip __last, _Function
}

template <typename _Ip, typename _Function, typename _Sp, typename _Pack, typename _IndexType>
::std::enable_if_t<::std::is_same_v<typename std::iterator_traits<_Ip>::iterator_category,
::std::enable_if_t<::std::is_same_v<typename ::std::iterator_traits<_Ip>::iterator_category,
::std::bidirectional_iterator_tag>,
_IndexType>
__execute_loop_strided(_Ip __first, _Ip __last, _Function __f, _Sp __stride, _Pack& __pack, _IndexType) noexcept
Expand Down Expand Up @@ -269,9 +269,9 @@ __execute_loop_strided(_Ip __first, _Ip __last, _Function __f, _Sp __stride, _Pa
}

template <typename _Ip, typename _Function, typename _Sp, typename _Pack, typename _IndexType>
::std::enable_if_t<::std::is_same_v<typename std::iterator_traits<_Ip>::iterator_category,
::std::enable_if_t<::std::is_same_v<typename ::std::iterator_traits<_Ip>::iterator_category,
::std::forward_iterator_tag> ||
::std::is_same_v<typename std::iterator_traits<_Ip>::iterator_category,
::std::is_same_v<typename ::std::iterator_traits<_Ip>::iterator_category,
::std::input_iterator_tag>,
_IndexType>
__execute_loop_strided(_Ip __first, _Ip __last, _Function __f, _Sp __stride, _Pack& __pack, _IndexType) noexcept
Expand Down

0 comments on commit 88c1667

Please sign in to comment.