Replace occurrences of OldValue with NewValue in Range.

Synopsis

Declared in <llvm/ADT/STLExtras.h>

template<
    typename R,
    typename T>
void
replace(
    R&& Range,
    T const& OldValue,
    T const& NewValue);

Parameters

Name

Description

Range

Range whose elements are updated.

OldValue

Value to replace.

NewValue

Replacement value.

Created with MrDocs