~/talk

Vector to Array

Talkat Meeting C++ 2025 · 2025-11-06..11-08· [rust]
links:none on file
slides:none on file

Shows how C++20 constexpr std::vector lets a multi-pass algorithm that previously produced a heap-allocated vector become a compile-time constant copied into a std::array, using template parameters to extract the size and contents. Applies to porting a real-time guitar cabinet emulator from a Raspberry Pi to a Pico with 512 KB RAM, eliminating runtime allocations and fitting static buffers. Adds a generic invocable auto lambda variant to accept any constexpr range. Tested with a Pico-capable compiler and it works.

AI-written summary · about

~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.