let's suppose I have:
template<class S, class T>
class node
{
public:
S key;
node(const S& key)
: key(key)
{}
};
Will this save a new instance of key or simply point to the one sent as parameter to the function?
I'm quit not sure since on the one hand I am sending a reference "kind of a pointer", on the other hand key isn't a pointer so a new instance should be made...