- 'inline' just makes the template function more likely to be
inlined, but it is not required in a header file, like it is
usually required for normal functions in order to prevent
redefinition errors.
Right
Isn't it more precise to say, it's not needed inside a class or struct
definition? If you have a free method in a header file you still need
to declare it to be inline, to avoid redefinition issues.
In my experience, 'inline' is needed for a free function in a header file, but not for a C++ template.
Inside 'class' or 'struct', 'inline' is kind of implicit.