Algo::FindBy

Returns a pointer to the first element in the range whose projection is equal to the given value.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Algo/Find.h"

Syntax

namespace Algo
{
    template<typename RangeType, typename ValueType, typename ProjectionType>
    auto Algo::FindBy
    (
        RangeType && Range,
        const ValueType & Value,
        ProjectionType Proj
    )
}

Remarks

Returns a pointer to the first element in the range whose projection is equal to the given value.

Returns

A pointer to the first element found, or nullptr if none was found.

Parameters

Parameter

Description

Range

The range to search.

Value

The value to search for.

Proj

The projection to apply to the element.

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