libstdc++
GNU C++ library
Loading...
Searching...
No Matches

◆ replace_copy_if() [1/4]

template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryPredicate, class _Tp>
__pstl::__internal::__enable_if_execution_policy< _ExecutionPolicy, _ForwardIterator2 > std::replace_copy_if ( _ExecutionPolicy && __exec,
_ForwardIterator1 __first,
_ForwardIterator1 __last,
_ForwardIterator2 __result,
_UnaryPredicate __pred,
const _Tp & __new_value )

Definition at line 360 of file glue_algorithm_impl.h.

362{
363 typedef typename iterator_traits<_ForwardIterator1>::reference _InputType;
364 typedef typename iterator_traits<_ForwardIterator2>::reference _OutputType;
365
366 auto __dispatch_tag = __pstl::__internal::__select_backend(__exec, __first, __result);
367
369 __dispatch_tag, std::forward<_ExecutionPolicy>(__exec), __first, __last, __result,
370 [__pred, &__new_value](_InputType __x, _OutputType __y) mutable { __y = __pred(__x) ? __new_value : __x; });
371}
constexpr _Tp && forward(typename std::remove_reference< _Tp >::type &__t) noexcept
Forward an lvalue.
Definition move.h:72
_ForwardIterator2 __pattern_walk2(_Tag, _ExecutionPolicy &&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _Function) noexcept
__serial_tag< std::false_type > __select_backend(__pstl::execution::sequenced_policy, _IteratorTypes &&...)
Traits class for iterators.

References __pstl::__internal::__pattern_walk2(), __pstl::__internal::__select_backend(), forward(), and replace_copy_if().

Here is the call graph for this function: