Algo::CompareByPredicate

Compares two contiguous containers using a predicate to compare pairs of elements.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Algo/Compare.h"

Syntax

namespace Algo
{
    template<typename InAT, typename InBT, typename PredicateT>
    constexpr bool Algo::CompareByPredicate
    (
        InAT && InputA,
        InBT && InputB,
        PredicateT Predicate
    )
}

Remarks

Compares two contiguous containers using a predicate to compare pairs of elements.

Returns

Whether the containers are the same size and the predicate returned true for every pair of elements.

Parameters

Parameter

Description

InputA

Container of elements that are used as the first argument to the predicate.

InputB

Container of elements that are used as the second argument to the predicate.

Predicate

Condition which returns true for elements which are deemed equal.

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