C++ templates allow programmers to write generic code, which works without modification on different data types. Through the careful use of templates, C++ programmers can write expressive code with high performance and low overhead, without the need to rely exclusively on more computationally expensive object-oriented techniques, such as the design patterns presented in the previous chapter.
6. Template-Based Techniques
Get Options and Derivatives Programming in C++23: Algorithms and Programming Techniques for the Financial Industry now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.