hash_map question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Stefan Istrate

    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?
  • Ian Collins

    #2
    Re: hash_map question

    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.

    Comment

    Working...