To instantiate a template function explicitly, follow the template keyword by a declaration (not definition) for the function, with the function identifier followed by the template arguments.
template float twice<float>(float original); |
Template arguments may be omitted when the compiler can infer them.
template int twice(int original); |