Re: C++: no hash_map while it is there?
On Sun, Nov 18, 2001 at 04:12:06AM +0100, Martin v. Loewis wrote:
> > > It does compile cleanly when replacing <hash_map> with <map> or with
> > > <hash_map.h>.
> > It may be that that is the proper way to do it; I'm not familiar enough with
> > STL to know. Perhaps someone on debian-gcc can comment on this?
> Including <map> is certainly the wrong approach; it gives you an rb
> tree, not a hash table.
> I believe the right way is to do
> #include <ext/hash_map>
Yes. See http://gcc.gnu.org/onlinedocs/libstdc++/faq/index.html#5_4 for more.
> I also believe that the comment in this header claiming that it is
> internal is incorrect; the headers without .h are never internal, but
> meant for the user only.
Yeah, I think I added those comments by mistake. The stuff in 'ext'
occasionally gets rearranged en masse.
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams