NAME
A member operator of omni::delegate15
omni::delegate15::operator bool
A member operator of omni::delegate15
#include <omni/delegate/15.hpp>inline omni::delegate15::operator bool()
DESCRIPTION
The boolean operator allows you to check for validity as if the delegate were a function pointer, example:
delegate<int> d; if (d) { d(); } // fails check because d is not attached d = &some_func; if (d) { d(); } // success because d is bound
top
The boolean operator allows you to check for validity as if the delegate were a function pointer, example:
delegate<int> d; if (d) { d(); } // fails check because d is not attached d = &some_func; if (d) { d(); } // success because d is bound
top