D
Dave
Hello,
template <class T>
class weak_ptr
{
weak_ptr(weak_ptr const &r);
};
In the code above, a parameter of type weak_ptr is declared. How is this
possible? weak_ptr is not a type, it's a template! How can me use the name
of a template as a data type?
Thanks,
Dave
template <class T>
class weak_ptr
{
weak_ptr(weak_ptr const &r);
};
In the code above, a parameter of type weak_ptr is declared. How is this
possible? weak_ptr is not a type, it's a template! How can me use the name
of a template as a data type?
Thanks,
Dave