"msalters" <Michiel.Salters@logicacmg.com> scribbled on the stall wall:[color=blue][color=green]
>>
>> subclass a traditional map to do what you want...that's the beauty of
>> c++.[/color]
>
> Why? It's not a std::map in the OO sense. Remember, in OO "IS-A" means
> is-a substitute. You can't use such a special map where you would
> otherwise
> use a std::map. E.g. the dtor is not virtual, nor is the operator[].
>
> Of course, this fixedSizeMap can probably use a std::map member.
>[/color]
shouldn't matter whether members are virtual or not. std::map give a good
starting point to CREATE a class that does what the OP wants. whether
the map is subclassed or is merely a member is merely a point of coding
preference.
--
dual 2.8Ghz Xeon; 2GB RAM; 500GB ATA-133; nVidia powered
Linux 2.6.10; glibc-2.3.5; vendor neutral home-brewed installation
----anything after this line is ANNOYING CRAP that the newsserver adds-----
---directly contact newsfeeds and ISPs that piggy back them to complain----
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----