Back to C++ Programming

Templates & Generics

Write generic code that works with any data type using function and class templates.

2 weeks

Topics in this Chapter

1

Function Templates

Create functions that can operate on various data types.

2

Class Templates

Create generic classes for data structures that work with any type.

GeekDost - Roadmaps & Snippets for Developers