oveRTOS C++ API
C++20 RAII wrappers for the oveRTOS C API
Loading...
Searching...
No Matches
ove::lvgl::detail::StatelessCallable Concept Reference

Concept satisfied by callables that are directly convertible to void(*)(lv_event_t*). More...

Concept definition

template<typename F>
concept ove::lvgl::detail::StatelessCallable = std::is_convertible_v<F, void (*)(lv_event_t *)>
Concept satisfied by callables that are directly convertible to void(*)(lv_event_t*).
Definition lvgl.hpp:379

Detailed Description

Concept satisfied by callables that are directly convertible to void(*)(lv_event_t*).

Only stateless lambdas and plain function pointers satisfy this concept. Capturing lambdas and functors with state do not, and must use the member-function-pointer overload of EventMixin::on() instead.

Template Parameters
FThe callable type to check.