Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Algo/Replace.h |
Include |
#include "Algo/Replace.h" |
namespace Algo
{
template<typename RangeType, typename ValueType, typename PredicateType>
void Algo::ReplaceIf
(
RangeType && Range,
PredicateType InPred,
const ValueType & InNew
)
}
Replaces all elements that satisfy the predicate with the given value.
Parameter |
Description |
---|---|
Range |
The range to search and modify in-place. |
InPred |
The predicate to apply to each element. |
InNew |
The value to copy in as a replacement for each element satisfying the predicate. |