Share via


replace (STL/CLR)

 

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

Examines each element in a range and replaces it if it matches a specified value.

Syntax

template<class _FwdIt, class _Ty> inline  
    void replace(_FwdIt _First, _FwdIt _Last,  
        const _Ty% _Oldval, const _Ty% _Newval);  

Remarks

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

Requirements

Header: <cliext/algorithm>

Namespace: cliext

See Also

algorithm (STL/CLR)