Jump to ContentJump to Main Navigation
Applied Computational Physics$
Users without a subscription are not able to see the full content.

Joseph F. Boudreau and Eric. S. Swanson

Print publication date: 2017

Print ISBN-13: 9780198708636

Published to Oxford Scholarship Online: February 2018

DOI: 10.1093/oso/9780198708636.001.0001

Show Summary Details
Page of

PRINTED FROM OXFORD SCHOLARSHIP ONLINE (www.oxfordscholarship.com). (c) Copyright Oxford University Press, 2019. All Rights Reserved. An individual user may print out a PDF of a single chapter of a monograph in OSO for personal use. date: 21 August 2019

Templates, the standard C++ library, and modern C++

Templates, the standard C++ library, and modern C++

Chapter:
(p.556) 17 Templates, the standard C++ library, and modern C++
Source:
Applied Computational Physics
Author(s):

Joseph F. Boudreau

Eric S. Swanson

Publisher:
Oxford University Press
DOI:10.1093/oso/9780198708636.003.0017

This chapter is devoted to programming techniques which rely on the C++ template mechanism. This mechanism, which is the basis of a computing style known as generic programming, allows whole families of functions and classes to be easily written. It is described early in the chapter. A host of extremely useful template functions and classes is universally available in the C++ standard library, including container classes (vector, list, set, and map) and algorithms used to sort, shuffle, and otherwise manipulate or query their contents. The chapter closes with an introduction to the newer constructs of modern C++: smart pointers, lambda functions, the auto keyword, range-based for loops, and more. An application to group theory is explored in the exercises.

Keywords:   templates, standard library, modern C++, collection classes, algorithms, map, list, set, vector

Oxford Scholarship Online requires a subscription or purchase to access the full text of books within the service. Public users can however freely search the site and view the abstracts and keywords for each book and chapter.

Please, subscribe or login to access full text content.

If you think you should have access to this title, please contact your librarian.

To troubleshoot, please check our FAQs , and if you can't find the answer there, please contact us .