J
jcteague
I have a class that has a set<int> member variable. the items in the
set are selected indices of a vector. I would like to sort the set on
the values in the vector they point too. Here is a part of the header
file:
Class A{
public:
int getX(int i) //basic getter. gets value from vector
private
set<int> selectedElements;
vector<int> x
};
I have tried several variations with a set comparison function with no
luck. Any help would be greatly appreciated.
thanks,
John
set are selected indices of a vector. I would like to sort the set on
the values in the vector they point too. Here is a part of the header
file:
Class A{
public:
int getX(int i) //basic getter. gets value from vector
private
set<int> selectedElements;
vector<int> x
};
I have tried several variations with a set comparison function with no
luck. Any help would be greatly appreciated.
thanks,
John