Skip to content

Commit

Permalink
transform_iterator constructor changes
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Hoeflinger <[email protected]>
  • Loading branch information
danhoeflinger committed Mar 4, 2024
1 parent 31da5f2 commit b6e5387
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions include/oneapi/dpl/pstl/iterator_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -410,10 +410,12 @@ class transform_iterator
typedef typename ::std::iterator_traits<_Iter>::pointer pointer;
typedef typename ::std::iterator_traits<_Iter>::iterator_category iterator_category;

transform_iterator(_Iter __it = _Iter(), _UnaryFunc __unary_func = _UnaryFunc())
: __my_it_(__it), __my_unary_func_(__unary_func)
{
}
transform_iterator() : __my_it_(), __my_unary_func_() {}

transform_iterator(_Iter __it) : __my_it_(__it), __my_unary_func_() {}

transform_iterator(_Iter __it, _UnaryFunc __unary_func) : __my_it_(__it), __my_unary_func_(__unary_func) {}

transform_iterator(const transform_iterator& __input) = default;
transform_iterator&
operator=(const transform_iterator& __input)
Expand Down

0 comments on commit b6e5387

Please sign in to comment.