#pragma once #include "UnrealTemplate.h" /** * Helper class to reverse a predicate. * Performs Predicate(B, A) */ template class TReversePredicate { const PredicateType& Predicate; public: TReversePredicate(const PredicateType& InPredicate) : Predicate(InPredicate) {} template FORCEINLINE bool operator()(T&& A, T&& B) const { return Predicate(Forward(B), Forward(A)); } };