For instance. I have some structure:
s_Some{
std::string lable;
s_some_junk some_junk;
};
And a vector:
std::vector<s_Some> mSome;
And then I fill this vector with a lot of s_Somes.
I need to find an iterator for a single s_Some in this vector, which has a specific lable. So far I just iterate through all of this junk and match every lable with the one wanted. This looks a little bit stupid to me. Is there a better way to do so?