ESPHome 2026.8.0
Loading...
Searching...
No Matches
esphome::PreferencesContract Concept Reference

#include <preference_backend.h>

Concept definition

template<typename T>
concept esphome::PreferencesContract = requires(T prefs, size_t len, uint32_t type, bool in_flash) {
{ prefs.make_preference(len, type, in_flash) } -> std::same_as<ESPPreferenceObject>;
{ prefs.make_preference(len, type) } -> std::same_as<ESPPreferenceObject>;
{ prefs.template make_preference<uint32_t>(type, in_flash) } -> std::same_as<ESPPreferenceObject>;
{ prefs.template make_preference<uint32_t>(type) } -> std::same_as<ESPPreferenceObject>;
{ prefs.sync() } -> std::same_as<bool>;
{ prefs.reset() } -> std::same_as<bool>;
}
uint16_t type
const void size_t len
Definition hal.h:64
static void uint32_t

Detailed Description

Definition at line 98 of file preference_backend.h.