replace_if (STL/CLR)

,则只要满足指定的特性,检查中的每个元素并替换它。

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

备注

此功能相同的行为就如同 STL 功能 replace_if的。有关更多信息,请参见 replace_if

要求

标题: <cliext/算法>

命名空间: cliext

请参见

参考

algorithm (STL/CLR)