C
Christopher Pisz
Is there a way to build a seperate array of objects, when those objects are
members of other objects, which are contained in a STL data structure?
, without iterating through the whole list one by one and getting them
seperatlely.
class A
{
public:
int * m_data;
};
typdef list<A> MyList;
MyList g_mylist;
void Foo()
{
// for each A object I need the data member
int ** datalist = ??
}
members of other objects, which are contained in a STL data structure?
, without iterating through the whole list one by one and getting them
seperatlely.
class A
{
public:
int * m_data;
};
typdef list<A> MyList;
MyList g_mylist;
void Foo()
{
// for each A object I need the data member
int ** datalist = ??
}