1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-12 08:12:22 +01:00

reverse space in vectors

This commit is contained in:
J. Nick Koston
2025-06-21 17:34:08 +02:00
parent be37178ef8
commit 1f99d18982

View File

@@ -278,6 +278,12 @@ class Application {
#ifdef USE_UPDATE #ifdef USE_UPDATE
void reserve_update(size_t count) { this->updates_.reserve(count); } void reserve_update(size_t count) { this->updates_.reserve(count); }
#endif #endif
#ifdef USE_AREAS
void reserve_area(size_t count) { this->areas_.reserve(count); }
#endif
#ifdef USE_DEVICES
void reserve_device(size_t count) { this->devices_.reserve(count); }
#endif
/// Register the component in this Application instance. /// Register the component in this Application instance.
template<class C> C *register_component(C *c) { template<class C> C *register_component(C *c) {