replace_copy_if (STL/CLR)

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at replace_copy_if (STL/CLR).

Examines each element in a source range and replaces it if it satisfies a specified predicate while copying the result into a new destination range.

template<class _InIt, class _OutIt, class _Pr, class _Ty> inline  
    _OutIt replace_copy_if(_InIt _First, _InIt _Last, _OutIt _Dest,  
        _Pr _Pred, const _Ty% _Val);  

This function behaves the same as the STL function replace_copy_if. For more information, see replace_copy_if.

Header: <cliext/algorithm>

Namespace: cliext

algorithm (STL/CLR)

Show: