469,626 Members | 1,070 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,626 developers. It's quick & easy.

hash_map question

On http://www.sgi.com/tech/stl/hash_map.html it says that hash_map is
only an extension of the SGI implementation, not a part of the C++
standard. But in g++ 4.1.3 I can manage it to work using the header
<ext/hash_mapand the namespace __gnu_cxx. So, it is present in more
implementations, not just SGI. Is this a thing I can trust in? Will I
always find hash_map on all new g++ versions? Should I care about
portability or it is safe to use it?
Feb 16 '08 #1
1 1375
Stefan Istrate wrote:
On http://www.sgi.com/tech/stl/hash_map.html it says that hash_map is
only an extension of the SGI implementation, not a part of the C++
standard. But in g++ 4.1.3 I can manage it to work using the header
<ext/hash_mapand the namespace __gnu_cxx. So, it is present in more
implementations, not just SGI. Is this a thing I can trust in? Will I
always find hash_map on all new g++ versions? Should I care about
portability or it is safe to use it?
Not if you want maximum portability. hash_map will be in the next
revision of the standard.

--
Ian Collins.
Feb 16 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Christian Meier | last post: by
5 posts views Thread by peter_k | last post: by
1 post views Thread by anjangoswami06 | last post: by
4 posts views Thread by newbie | last post: by
11 posts views Thread by aaragon | last post: by
1 post views Thread by Axel Gallus | last post: by
2 posts views Thread by Amit Bhatia | last post: by
5 posts views Thread by frankw | last post: by
2 posts views Thread by marek.vondrak | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.