CRTP mixin examples
Ready-to-use CRTP mixins: logging, enable/disable toggle, singleton, comparable, printable. Drop into any class to add behaviour without virtual dispatch.
Ready-to-use CRTP mixins: logging, enable/disable toggle, singleton, comparable, printable. Drop into any class to add behaviour without virtual dispatch.
A type-safe, fixed-capacity object pool for embedded and real-time systems. O(1) allocation and deallocation, no heap fragmentation, compatible with unique_ptr.
The only correct singleton implementation in C++11. Why double-checked locking was broken before C++11, why it works now, and when to avoid singletons entirely.
A power-of-two ring buffer with no dynamic allocation, safe for use between an ISR and a task. Full implementation you can drop into any project.
A clean, dependency-free Observer in modern C++. From raw function pointers to std::function, with an embedded-safe variant using a fixed-size subscriber list.