TrinityCore
Trinity::Predicates Namespace Reference

Classes

class  HealthPctOrderPred
 Binary predicate for sorting Units based on percent value of health. More...
 
class  Inverter
 
class  IsVictimOf
 Only returns true for the given attacker's current victim, if any. More...
 
class  PowerPctOrderPred
 Binary predicate for sorting Units based on percent value of a power. More...
 

Functions

template<typename PRED >
Inverter< PRED > Invert (PRED &&p)
 Inverts the given predicate to return the opposite result. More...
 

Function Documentation

◆ Invert()

template<typename PRED >
Inverter< PRED > Trinity::Predicates::Invert ( PRED &&  p)

Inverts the given predicate to return the opposite result.

Definition at line 94 of file CommonPredicates.h.