Suppose that I have a class which has a vector of pointer to another class
1 2 3 4 5 6 7 8 9 10 11 12 13 14
class b
{
public:
void genericFunction();
}
=========================
#include <vector>
class a
{
public:
void specialFunction();
private:
vector<b*> vecToB;
};
How can I call specialFunction() from genericFunction()? I mean how can I have a pointer to a container of vector (class A)?