ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
esphome::mapping Namespace Reference

Data Structures

class  Mapping
 

Typedefs

using alloc_string_t = std::basic_string<char, std::char_traits<char>, RAMAllocator<char>>
 

Functions

 ESPHOME_LOG_TAG (TAG, "mapping")
 Mapping class with custom allocator.
 

Typedef Documentation

◆ alloc_string_t

using esphome::mapping::alloc_string_t = std::basic_string<char, std::char_traits<char>, RAMAllocator<char>>

Definition at line 11 of file mapping.h.

Function Documentation

◆ ESPHOME_LOG_TAG()

esphome::mapping::ESPHOME_LOG_TAG ( TAG ,
"mapping"  )

Mapping class with custom allocator.

Additionally, when std::string is used as key or value, it will be replaced with a custom string type that uses RAMAllocator.

Template Parameters
KThe type of the key in the mapping.
VThe type of the value in the mapping. Should be a basic type or pointer.