user7329: Both ArduinoSTL and StandardCplusplus don't support them. They implement the version that is compatible with c++03 (not c++11). 
This functionality is handy when you design libraries that work with callbacks. And you do need them, if your Arduino does more than one thing simultaneously. 
I tried also several other options, but none was enough. Most complete thing I found, Passing capturing lambda as function pointer, does not support plain function pointers and does not allow me to hold the function object as a member of the structure, because the type of the object depends on the lambda (not only its signature, like in std::function).
In particular, I need a functor that

can store both capturing lambdas and plain function wrappers
has a type that depends only on the signature of the function, so I can store it as a class member.


user7329: We have written a solution, that we published as a Platformio library: https://github.com/fopeczek/function_objects.
Please note, that each functional object does one allocation, and those are not particularly friendly in an embedded environment. I am not even sure, that the Arduino C++ does heap deallocation, so you may be leaking resources if you create and destroy the functional objects in a loop.

7329: <p>Both <a href="https://github.com/mike-matera/ArduinoSTL" rel="noreferrer">ArduinoSTL</a> and <a href="https://github.com/maniacbug/StandardCplusplus" rel="noreferrer">StandardCplusplus</a> don't support them. They implement the version that is compatible with c++03 (not c++11). </p>

<p>This functionality is handy when you design libraries that work with callbacks. And you do need them, if your Arduino does more than one thing simultaneously. </p>

<p>I tried also several other options, but none was enough. Most complete thing I found, <a href="https://stackoverflow.com/a/41528436/1261153">Passing capturing lambda as function pointer</a>, does not support plain function pointers and does not allow me to hold the <code>function</code> object as a member of the structure, because the type of the object depends on the lambda (not only its signature, like in <code>std::function</code>).</p>

<p>In particular, I need a functor that</p>

<ul>
<li>can store both capturing lambdas and plain function wrappers</li>
<li>has a type that depends only on the signature of the function, so I can store it as a class member.</li>
</ul>
 7329: <p>We have written a solution, that we published as a Platformio library: <a href="https://github.com/fopeczek/function_objects" rel="nofollow noreferrer">https://github.com/fopeczek/function_objects</a>.</p>
<p>Please note, that each functional object does one allocation, and those are not particularly friendly in an embedded environment. I am not even sure, that the Arduino C++ does heap deallocation, so you may be leaking resources if you create and destroy the functional objects in a loop.</p>
