How to assign alias to template function in C++? -
i writing few mathematical functions c++ , have learned use template functions don't have make loads of overloaded copies of simple function different types. have made test program has different types i'm use , runs each 1 through function check work ok.
what want assign alias 1 of template functions call different name, can write new functions , run them through test changing alias new function rather going through whole code find , replace change new function want test.
i have tried this
template <typename t> using b = a<t>;
and this
template<typename t> constexpr auto alias_to_old = old_function<t>;
but both throw errors.
please note pretty beginner @ c++ don't use jargon in answers, , clear examples appreciated.
thanks!
Comments
Post a Comment