Qpid Proton C++ API  0.17.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
void_function0 Class Referenceabstract

A C++03 compatible void no-argument callback function object. More...

#include <function.hpp>

Inherited by thread_safe< T >::inject_decref.

Public Member Functions

virtual void operator() ()=0
 Override the call operator with your code.
 

Detailed Description

A C++03 compatible void no-argument callback function object.

Used by container::schedule() and event_loop::inject(). In C++11 you can use std::bind, std::function or a void-no-argument lambda instead.

void_function0 is passed by reference, so instances of sub-classes do not have to be heap allocated. Once passed, the instance must not be deleted until its operator() is called or the container has stopped.

Examples:
mt/epoll_container.cpp, scheduled_send_03.cpp, and service_bus.cpp.

The documentation for this class was generated from the following file: