title: Templates, coding only in header file?
body: <p>Recently I've learned that if i want to use templates, I should implement code only in header files.I know that there are solutions to do that in .h and .cpp files, but just supposing i don't want to do that, should i write all my code in the .h file? Is it a good way of writing code, even though the program can be large? In addition, it looks weird to have only .h files(not including main function) and never use .cpp file.</p>