TMapBase::FilterByPredicate

Filters the elements in the map based on a predicate functor.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/Map.h

Include

#include "Containers/Map.h"

Syntax

template<typename Predicate>
TMap< KeyType, ValueType > FilterByPredicate
(
    Predicate Pred
) const

Remarks

Filters the elements in the map based on a predicate functor.

Returns

TMap with the same type as this object which contains the subset of elements for which the functor returns true.

Parameters

Parameter

Description

Pred

The functor to apply to each element.