BufferUtil::CountValid

Count number of elements in array (or within requested range) that pass Predicate test

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/Util/BufferUtil.h

Include

#include "Util/BufferUtil.h"

Syntax

namespace BufferUtil
{
    template<typename T>
    int BufferUtil::CountValid
    (
        const TArray< T > & Data,
        const TFunction< bool> & Predicate,
        int MaxIndex,
        int StartIndex
    )
}

Remarks

Count number of elements in array (or within requested range) that pass Predicate test

Returns

number of values in array that returned true for Predicate

Parameters

Parameter

Description

Data

Array to process

Predicate

filtering function, return true indicates valid

MaxIndex

optional maximum index in array (exclusive, default is to use array size)

StartIndex

optional start index in array (default 0)

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