C
cppaddict
Hi,
How can you create a pointer or a reference to a list. For example:
list<int> l;
//...some code initializes the list
//now try to create a pointer or ref to it
list<int>* = l; //doesn't work
list<int>& = l; //also doesn't work
What is the correct way to do this?
Thanks,
cpp
How can you create a pointer or a reference to a list. For example:
list<int> l;
//...some code initializes the list
//now try to create a pointer or ref to it
list<int>* = l; //doesn't work
list<int>& = l; //also doesn't work
What is the correct way to do this?
Thanks,
cpp