Tech Papers

This paper examines the use of C++ templates in embedded systems from two different viewpoints. First, it addresses the reputation that templates have for code bloat, explaining how template instantiation occurs and can be controlled, as well as describing techniques that are useful for limiting bloat. Secondly, it describes two applications of templates, one layering type-safety on top of void-based containers without adding any runtime cost, the second detecting dimensional unit type errors during compilation — behavior that cannot be implemented in C. The information in this paper is an overview of more detailed information covered in the conference presentation.





Please sign in to post comment

Navigate to related information

Datasheets.com Parts Search

185 million searchable parts
(please enter a part number or hit search to begin)
Jobs sponsored by

Feedback Form