I defined this struct:
typedef struct Systems {
//stuff...
vector<double> list;
} System;
vector <System> system(100);
At a certain point I would like to perform an operation on all the 100 entries of system[i].list[0]
or system[i].list[1]
How it is possible to do this?
on a simple stl vector I would do:
upper_bound(list.begin() list.end(), R)-list.begin();
But using a struct, I found some problems: for example I can't use this:
upper_bound(system.begin().list[1], system.end().list[1], R)-system.begin().list[1];
Could you help me?
A.