可以通过多个模板(包括内置模板)传递通道参数,而不会丢失参数。
You can pass tunnel parameters through several templates, including built-in ones, without loss of them.
一个非常重要的问题是询问模板函数,这些形式上的模板参数会被类型集合正确的取代,而不仅仅是STL算法。
One very important question to ask about any template function, not just about STL algorithms, is what the set of types is that may correctly be substituted for the formal template parameters.
特别要注意:接收一些参数但是不做处理而传递给其他模板的模板。
Especially notable: a template that receives some parameters and does nothing with them other than pass them to another template.
应用推荐