replace_if (STL/CLR)

Examines each element in a range and replaces it if it satisfies a specified predicate.

Syntax

template<class _FwdIt, class _Pr, class _Ty> inline  
    void replace_if(_FwdIt _First, _FwdIt _Last, _Pr _Pred,  
        const _Ty% _Val);  

Remarks

This function behaves the same as the C++ Standard Library function replace_if. For more information, see replace_if.

Requirements

Header: <cliext/algorithm>

Namespace: cliext

See Also

algorithm (STL/CLR)