Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 989 Bytes

File metadata and controls

35 lines (21 loc) · 989 Bytes

CPP4 - Templates & other C++ topics

functiontemplate.cpp

Video (5:24) Examples of function templates in C++

Note that in the video the filename was called template.cpp.

template.cpp

Video (10:33) Introduction to templates in C++

Note that the template in this file has 2 type parameters, but the video example starts with one type parameter and builds to 2.

friend.cpp

Video (13:47) Example of the friend modifier for classes & methods. The example is in the context of a simple linked-list implementation.

readfile.cpp

Video (10:00) Example of reading a file & parsing a string in C++. This program is equivalent to readfile.c.

explicit.cpp

Video (3:25) Demonstration of the explicit modifier

variadic.cpp

Video (7:26) Example of variadic template