Skip to main content

Template-Based Techniques

  • Chapter
  • First Online:
Options and Derivatives Programming in C++
  • 2749 Accesses

Abstract

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 is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Carlos Oliveira

About this chapter

Cite this chapter

Oliveira, C. (2016). Template-Based Techniques. In: Options and Derivatives Programming in C++. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-1814-3_6

Download citation

Publish with us

Policies and ethics