T
thomas
I’m just writing a program which uses the queue stl type.
Queue<packet*> queue_;
Queue<packet&> queue_;
These two writings are very similar, except that one is pointer and
one is reference.
Is there anything I must be careful when I am using either one of
them?
More specifically, is there anything really different between these
two “queue”s?
Queue<packet*> queue_;
Queue<packet&> queue_;
These two writings are very similar, except that one is pointer and
one is reference.
Is there anything I must be careful when I am using either one of
them?
More specifically, is there anything really different between these
two “queue”s?