Research on the Static Dispatching in C++ Based on Display Management Overloaded Set
Da You Cao · Applied Mechanics and Materials · 2014
In C++, there exists static dispatching technique and dynamic dispatching technique. To move some dispatching at executive time up to compile time can reduce length of complied code and improve the overall running speed. We analyze the necessity of introducing static dispatching technique and those used commonly, and then we present a way to realize static dispatching technique by using enable_if template group in Boost library non-intrusively explicitly to manage the overloaded set of template functions. More importantly, in this way, one could overload template functions by their return values.