The Driver owns the Buffer through composition. When the Driver object goes out of scope, its destructor runs first, followed by destruction of its member objects. This demonstrates deterministic teardown order, which is critical in embedded systems.
Firmware Relevance & Real-World Context:
Embedded drivers frequently manage internal buffers, hardware state, or DMA descriptors. Composition ensures strict ownership and predictable cleanup without dynamic memory or manual resource management, aligning with real-world firmware design principles.