IfPThenAElseB

Branchless pointer selection based on predicate return PTRINT(Predicate) ? A : B;

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

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

Include

#include "Containers/ContainerAllocationPolicies.h"

Source

/Engine/Source/Runtime/Core/Public/Templates/UnrealTemplate.h

Syntax

template<typename PredicateType, typename ReferencedType>
ReferencedType * IfPThenAElseB
(
    PredicateType Predicate,
    ReferencedType * A,
    ReferencedType * B
)

Remarks

Branchless pointer selection based on predicate return PTRINT(Predicate) ? A : B;