No, you can't. Templates must be available to the compiler when their instantiations are compiled. Compiling a source file with just a template definition will not generate anything. Template code is NOT source code. When you compile the source that calls the template function, if the template is available (like in the header file), the function will be instantiated and will get compiled.
I also like to keep template definitions that look like source code in separate files. I write ".tcpp" files and place them there. Then I include the .tcpp file at the bottom of the .h file, so the template definitions are pulled in with the declarations. This style is ONLY FOR LOOKS. The simplest thing is to put the template definition into the header file and let it be.
I am also a beginner . So, i just want to know about the given topic with some more explanation. Will you please help me? I just want to learn that how to Create a static class function that takes an infinite number of arguments.