Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on C Template Library. Parent comment
template<typename T> void my_func(std::vector<T>& vec);
The reference (or use a pointer, if you want) ensures that derived types can be passed, and the template allows for any parameterization to be used.
There are no comments on this comment yet.
The reference (or use a pointer, if you want) ensures that derived types can be passed, and the template allows for any parameterization to be used.