举例来说,要创建一个虚函数:inline int inlineop (int x),请您执行下述步骤。
For example, to create an inline function such as inline int inlineop (int x), perform these steps.
也许我们认为可以通过定义一个虚函数集合来解决这个问题,这些虚函数可以在类层次中每一层执行相等测试。
We might think we could solve this problem by defining a set of virtual functions that would perform the equality test at each level in the hierarchy.
在我的测试中,虚表上的查询比做同样查询的TimeSeries函数要慢一个数量级。
In my tests, it can be an order of magnitude slower than a TimeSeries function that does the same query.
应用推荐