18#ifndef TRINITY_COMMONPREDICATES_H
19#define TRINITY_COMMONPREDICATES_H
41 template <
typename PRED>
47 template <
typename... Args>
50 return !_child(std::forward<Args>(args)...);
53 template <
typename... Args>
56 return !_child(std::forward<Args>(args)...);
63 template <
typename PRED>
bool operator()(Args &&... args)
bool operator()(Args &&... args) const
Only returns true for the given attacker's current victim, if any.
WorldObject const * _victim
bool operator()(WorldObject const *obj) const
Inverter< PRED > Invert(PRED &&p)
Inverts the given predicate to return the opposite result.