クラステンプレートの特殊例の暗黙のインスタンスを理解する:ので、標準の<a href="http://www.eel.is/c++draft/temp.inst#2" rel="nofollow noreferrer">this section</a>が(私の質問はインラインある)この例を示します
template<class T, class U>
struct Outer {
template<class X, class Y> struct Inner; // Where are X and Y from? Is this defining a struct?
template<class Y> struct Inner<T, Y>; // Is this defining a struct specialization? If so what is Y?
template<class Y> struct Inner<T, Y> { }; // I feel like this is a redefinition of the line above, could it ever not be?
template<class Y> struct Inner<U, Y> { };
};
確かに私は私ができる標準的な原因のリンク部分を理解することはできませんここで起こっていることを理解する。私はちょうど周りに飛んでtemplate
のすべてが混乱していると思うが、誰かが行ごとに行けば何が起こっているか教えてくれれば非常に役に立つだろう。
@Downvoter。 C++の質問に必須のdownvoteを提供していただけでしたか、実際にこの質問に間違っていましたか? –