© Carlos Oliveira 2016

CARLOS OLIVEIRA, Options and Derivatives Programming in C++, 10.1007/978-1-4842-1814-3_6

6. Template-Based Techniques

Carlos Oliveira

(1)Monmouth Junction, New Jersey, USA

C++ templates allow programmers to write generic code, which works without modification on different datatypes. Through the careful use of templates, C++ programmers can write expressive code with high performance and low overhead, without needing 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 derivatives-based financial problems. Here are some of the topics ...

Get Options and Derivatives Programming in C++: 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.