3 ms·
You need the definitions in the header for templates (which look like what other languages call generic types), because the source of the method needs to be ava
by freeone3000 2y ago
You need the definitions in the header for templates (which look like what other languages call generic types), because the source of the method needs to be available to effect the template substitution. (The idea behind headers being you can compile against a header and a compiled object, like a shared library.)