Lesson 16 of 24 · +150 xp

Template

Generic function.

Explained simply

Your task

Write: template<typename T> T add(T a, T b) { return a + b; }

template.cpp
← Back