© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
C. OliveiraOptions and Derivatives Programming in C++23https://doi.org/10.1007/978-1-4842-9827-5_6

6. Template-Based Techniques

Carlos Oliveira1  
(1)
Seattle, WA, USA
 

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.

This chapter explores a few template-based programming practices that can be used to solve options- and ...

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.