Is template can't use in class?
------------------------
template<typename T>
void abc(T x)
{
}
------------------------
this right
but
------------------------
template<typename T>
class aa
{
void abc(T x)
};
------------------------
this is error,and it says identifier 'T'
why?
------------------------
template<typename T>
void abc(T x)
{
}
------------------------
this right
but
------------------------
template<typename T>
class aa
{
void abc(T x)
};
------------------------
this is error,and it says identifier 'T'
why?