I have a C++ variable of type std::vector<std::bitset<128> > which is defined and populated in a C++ class (which is called from my Objective-C++ class.)
I would like to store this object in an NSDictionary - or some equivalent of. I clearly can't simply add the std::vector<std::bitset<128> > to the NSDictionary because it's not of type id.
So my question is this: how can I achieve the same concept? How can I store a std::vector<std::bitset<128> > in a dictionary of sorts?
Can I wrap the vector object in an id type somehow? Even if it's not a direct dictionary, is there another method I could use? I also need this to be mutable, so I can add key/object's at runtime.
I'v seen std::map<std::string, std::string>, but I'm not sure if it's what I'm looking for. Nor have I found any examples on it being mutable.
Does anyone have any idea how to achieve this?