Questions tagged [lambda]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
122 views

How do I use lambda functions in Arduino?

I want to pass a lambda function as an argument to a method. Example: T reduce(const T initial, const std::function<T(T, T)> acc) { T value = initial; for (size_t i = 0; i < S; ++i) { ...
0
votes
1answer
35 views

Use callbacks in Arduino with pointers to functions (will functions persist in memory?)

As I been learning Arduino (micro controllers, c++, etc) I have learned that memory is very limited. I already understand how memory works when it comes to variables. But I do not understand how ...