omni::delegate1::operator
NAME

omni::delegate1::operator

A member operator of omni::delegate1

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

SYNOPSIS

Has the same effect as calling the invoke method.

top

DESCRIPTION

Overloading this operator makes it such that you can use the delegate as if it were a function, for example:

delegate<int> d = &some_func; printf("value = %d", d());

top

RETURN VALUES

The return type specified at compile time

top