×

Loading...

look at this you'll understand what X takes. it actually can take anything.

interview (intervieweree)
template<class T>
class X
{
public:
T a;
};

template<template<typename U> class T1, class T2>
class Y
{
public:
T1<float> b;

};
X<int> x;
Y<X, int> aY;

int main()
{

return 0;
}
(#375736@0)
2002-2-21 -04:00
This post has been archived. It cannot be replied.
Page address has been copied. To share, click to copy page address.
Share Online by QR Code

Back To Topic: What's the actual type passed as T to instanciate X? This puzzled me!

Back To Forum: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论