I am trying to use STL map like 'hash of arrays' in Perl.
For eg in Perl hash of array,
%HoA = (
flintstones => [ "fred", "barney" ],
jetsons => [ "george", "jane", "elroy" ],
simpsons => [ "homer", "marge", "bart" ],
);
print $HoA{flintstones}[0] ; # will give fred as output
Is it possible to do a similar thing in STL Map.
TiA
For eg in Perl hash of array,
%HoA = (
flintstones => [ "fred", "barney" ],
jetsons => [ "george", "jane", "elroy" ],
simpsons => [ "homer", "marge", "bart" ],
);
print $HoA{flintstones}[0] ; # will give fred as output
Is it possible to do a similar thing in STL Map.
TiA