11 karma · joined Jan 1, 2022 (4y ago) · 14 submissions
comment 10mo ago · link · parent
comment 1y ago · link · parent
Main things you would need to understand is specialization (think like pattern matching but compile time) and pack expansion (three dots).
Developed by Sergey Titov (same engine that powers Big Rigs).
const auto [...I] = std::make_index_sequence<INPUT_COUNT>{}; ((SetupInput<I>(options, transport_manager, subscriber_queues[I], thread_pool, templated_topic_to_runtime_topic)),...);
comment 3y ago · link · parent
comment 4y ago · link · parent