Algo::Replace

Replaces all elements that compare equal to one value with a new value.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Algo/Replace.h

Include

#include "Algo/Replace.h"

Syntax

namespace Algo
{
    template<typename RangeType, typename ValueType>
    void Algo::Replace
    (
        RangeType && Range,
        const ValueType & InOld,
        const ValueType & InNew
    )
}

Remarks

Replaces all elements that compare equal to one value with a new value.

Parameters

Parameter

Description

Range

The range to search and modify in-place.

InOld

The value to search for.

InNew

The value to copy in as a replacement.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss