In the below example code I need to pass the structure vector to a function.
class A {
public:
struct mystruct {
mystruct (int _label, double _dist) : label(_label), dist(_dist) {}
int label;
double dist;
};
}
I declared the vector as below:
vector<A:: mystruct > mystry;
Now in this class "A" there is a function as below.
myfunc ( vector<mystruct> &mystry );
How to pass the structure vector to my "myfunc"?