...声明函数模板或类模板的头文件中添加一条#include语句把模板定义文件包含进来; (2)分别编译模型(separate compilation model),通过在定义处使用export关键字声明。 模板可以包含非类型模板形参。
基于46个网页-相关网页
所有的编译器都实现了包含模型,而只有很少数的编译器实现分别编译模型。
At this time, all compilers implements the inclusion model, while only some implement the separate compilation model. Your compiler's user's guide should specify how your system manages templates.
通用应用模型中,用PD U参数容器替代编译出来的ASN . 1源代码文件,不必针对不同协议结构分别产生源代码,大大减少了代码量。
In the universal ASN. 1 application model, PDU parameter container can substitute for source codes produced by the ASN. 1 compiler hence system's code lines can be reduced greatly.
应用推荐