ESPHome 2026.3.0-dev
Loading...
Searching...
No Matches
esphome::FixedString< N > Struct Template Reference

Helper for C++20 string literal template arguments. More...

#include <progmem.h>

Public Member Functions

constexpr FixedString (const char(&str)[N])
 
constexpr size_t size () const
 

Data Fields

char data [N] {}
 

Detailed Description

template<size_t N>
struct esphome::FixedString< N >

Helper for C++20 string literal template arguments.

Definition at line 45 of file progmem.h.

Constructor & Destructor Documentation

◆ FixedString()

template<size_t N>
esphome::FixedString< N >::FixedString ( const char(&) str[N])
inlineconstexpr

Definition at line 47 of file progmem.h.

Member Function Documentation

◆ size()

template<size_t N>
size_t esphome::FixedString< N >::size ( ) const
inlineconstexpr

Definition at line 51 of file progmem.h.

Field Documentation

◆ data

template<size_t N>
char esphome::FixedString< N >::data[N] {}

Definition at line 46 of file progmem.h.


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