ESPHome 2026.4.0-dev
Loading...
Searching...
No Matches
esphome::StaticCallbackManager< N, X > Class Template Reference

CallbackManager backed by StaticVector for compile-time-known callback counts. More...

Detailed Description

template<size_t N, typename... X>
class esphome::StaticCallbackManager< N, X >

CallbackManager backed by StaticVector for compile-time-known callback counts.

Drop-in replacement for CallbackManager that avoids std::vector template bloat (_M_realloc_insert, etc.) when the maximum number of callbacks is known at compile time.

Template Parameters
NMaximum number of callbacks (compile-time constant, typically from cg.add_define())
TsThe arguments for the callbacks, wrapped in void().

Definition at line 1841 of file helpers.h.


The documentation for this class was generated from the following file: