omni::delegate1::operator bool
NAME

omni::delegate1::operator bool

A member operator of omni::delegate1

#include <omni/delegate/1.hpp>
inline omni::delegate1::operator bool()

SYNOPSIS

Calls this instances valid() function

top

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

RETURN VALUES

True if the delegate is attached

top