I'm sure I'm making it harder than it should be.
I have a vector ...
vector<Joints> mJointsVector;
... consisting of structures structured after the following:
struct Joints { string name; float origUpperLimit; float origLowerLimit; };
I'm trying to search mJointsVector with "std :: find" to find a single joint by its string name - so far no luck, but the examples from the ones below have helped, at least conceptually:
Vectors, structures, and std :: find
Can someone point me further in the right direction?
c ++ find data-structures vector std
Monte hurd
source share