由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - one template question
相关主题
一个partial specialization的问题What is the difference between class and struct?
怎么隐藏c++template代码?只提供lib 不提供头文件如何使用这个template?
也问个template 的问题(C++)Help: who has gcc 4.0 or higher
[菜鸟问题]类模板问题Any difference between class and typename identifier?
请问const myClass &src 和myClass const &src有什么区别?template class instantiation问题
C++ Q88: nested non-template class (转载)[合集] simple question
sgi stl 源代码一问为什么要用template
no partial specialize function templates?template question
相关话题的讨论汇总
话题: myclass话题: template话题: class话题: question
进入Programming版参与讨论
1 (共1页)
c*******9
发帖数: 6411
1
are those two the same thing? one with after MyClass and another does
not have it..
class MyClass {
template
class MyClass
{
...
}
and
template
class MyClass
{..
}
e****d
发帖数: 895
2
I think the first one should be
template <> class MyClass {}
which is an explicit specialization.
The other two are partial specialization and primary template.

【在 c*******9 的大作中提到】
: are those two the same thing? one with after MyClass and another does
: not have it..
: class MyClass {
: template
: class MyClass
: {
: ...
: }
: and
: template

1 (共1页)
进入Programming版参与讨论
相关主题
template question请问const myClass &src 和myClass const &src有什么区别?
共享我的C++面试题目精选C++ Q88: nested non-template class (转载)
[合集] 关于C++ Class Template编程一问sgi stl 源代码一问
[合集] 请教: 模板类之继承的一个小问题no partial specialize function templates?
一个partial specialization的问题What is the difference between class and struct?
怎么隐藏c++template代码?只提供lib 不提供头文件如何使用这个template?
也问个template 的问题(C++)Help: who has gcc 4.0 or higher
[菜鸟问题]类模板问题Any difference between class and typename identifier?
相关话题的讨论汇总
话题: myclass话题: template话题: class话题: question