For example, if you have erroneously modeled operations inside of a template instantiation or an anonymous union, then such operations need to be thrown away.
例如,如果您在一个模板例子,或匿名联合体中错误地为操作建模,那么这样的操作应该被弃除。
But, you can only accomplish two other popular operations on a set of Numbers, finding the minimum and maximum, by a recursive template or extension function.
但是只能通过递归模板或者扩展函数来完成其他两种常见的操作:求最大值和最小值。
The template mechanism in UML 2.0 was restricted to cases that were well understood: classifiers, operations, and packages.
在UML 2.0中的模板机制受到一些容易理解的案例的限制如:分类器,操作,和包。
应用推荐