B
Brad
New to C++. Just ran into a need to store three things in a map. Before
trying it, I thought I'd post here and ask for advice. Here is an
example of what I need to store:
map<string name, string prefix, int length>
Both name and prefix would be unique for each map entry. I was wondering
if the the first entry could be an array that holds the two items (name
and prefix), but then I wondered how an iterator would behave when
it->first is called.
Any suggestions or pointers on using a map with three items would be
much appreciated.
Brad
trying it, I thought I'd post here and ask for advice. Here is an
example of what I need to store:
map<string name, string prefix, int length>
Both name and prefix would be unique for each map entry. I was wondering
if the the first entry could be an array that holds the two items (name
and prefix), but then I wondered how an iterator would behave when
it->first is called.
Any suggestions or pointers on using a map with three items would be
much appreciated.
Brad