|
cxxomfort
rel.20211024
Simple backports for C++ - https://ryan.gulix.cl/fossil.cgi/cxxomfort/
|
A non-owning view of an object callable with a function signature.A function_ref is a non-owning view to a callable object or function pointer for a given signature.
More...
A non-owning view of an object callable with a function signature.
A function_ref is a non-owning view to a callable object or function pointer for a given signature.
Basically it's the equivalent to what array_ref is for contiguous sequences or what reference_wrapper and any are to normal types.
function_ref is a _ref - hence it does not work with temporaries such as bind expressions. The following doesn't work:
1.8.13