>vector<xxx *> *abc
This is a pointer to a vector of pointers to xxx. Here is an example of how to set it up and then use it:
Code:
#include <iostream>
#include <vector>
using namespace std;
class xxx {
public:
void foo() { cout<<"Foofoo!\n"; }
};
int main()
{
xxx a;
vector<xxx*> *abc = new vector<xxx*>;
abc->push_back ( &a );
(*abc)[0]->foo();
}
>vector<xxx *> & abc
This is a reference to a vector of pointers to xxx. The same principles apply from above except you must assign a real vector to abc when you declare it and you don't need to dereference it:
Code:
#include <iostream>
#include <vector>
using namespace std;
class xxx {
public:
void foo() { cout<<"Foofoo!\n"; }
};
int main()
{
xxx a;
vector<xxx*> base;
vector<xxx*>& abc = base;
abc.push_back ( &a );
abc[0]->foo();
}