How to implement atot() so it uses atof(), atoi(), or atol() according to the type?
Currently it uses atof() for all types:
template<typename T>
T Mtx<T>::atot(const char *s) const
{
return atof(s);
}
Please note that speed is very important.
The most straight-forward solution is to specialize: