Lagrange
function_ref< F > Class Template Reference

A lightweight non-owning reference to a callable. More...

Detailed Description

template<class F>
class lagrange::function_ref< F >

A lightweight non-owning reference to a callable.

Example usage:

void foo (function_ref<int(int)> func) {
std::cout << "Result is " << func(21); //42
}
foo([](int i) { return i*2; });
A lightweight non-owning reference to a callable.
Definition: function_ref.h:47

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