Algo::CountIf

Counts elements of a range that match a given predicate

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Algo/Count.h"

Syntax

namespace Algo
{
    template<typename InT, typename PredicateT>
    SIZE_T Algo::CountIf
    (
        const InT & Input,
        PredicateT Predicate
    )
}

Remarks

Counts elements of a range that match a given predicate

Parameters

Parameter

Description

Input

Any iterable type

Predicate

Condition which returns true for elements that should be counted and false for elements that should be skipped

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