Is it possible to include more than one function in the same template instead of rewriting the template twice? Like if you were writing:
template
Grouping them inside a class template would achieve that.
template <class T> struct Functions { static void A() { /*...*/ } static void B() { /*...*/ } };
However, you lose the ability to deduce T from the functions' arguments, and the calling syntax is longer :
T
Functions<double>::A();