Lagrange

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

Classes

class  function_ref< F >
 A lightweight non-owning reference to a callable. More...
 
class  function_ref< R(Args...)>
 Specialization for function types. More...
 

Functions

template<typename R , typename... Args>
constexpr void swap (function_ref< R(Args...)> &lhs, function_ref< R(Args...)> &rhs) noexcept
 Swaps the referred callables of lhs and rhs.
 
template<typename R , typename... Args>
 function_ref (R(*)(Args...)) -> function_ref< R(Args...)>
 Deduce function_ref type from a function pointer.
 

Detailed Description

A lightweight non-owning reference to a callable.