Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #7745

Re: hash_set was not declared even I #include<hash_set>

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Miles Bader <miles@gnu.org>
Newsgroups comp.lang.c++
Subject Re: hash_set was not declared even I #include<hash_set>
Date Tue, 12 Jul 2011 17:19:23 +0900
Organization NEC Electronics
Lines 15
Message-ID <buohb6rgbck.fsf@dhlpc061.dev.necel.com> (permalink)
References <e09fa4e0-d9c3-42ab-afce-727823696ce7@p19g2000prg.googlegroups.com> <c9675133-084a-406d-9fbd-9476d3841391@h12g2000vbx.googlegroups.com>
Mime-Version 1.0
Content-Type text/plain
X-Trace individual.net b+0T+D4lXgTKxfXYkMYjFwz5yyYmJI3iqUieguS0t7FhWMBK3E
Cancel-Lock sha1:iagtQZU4EM9P388l/QomItJpeKA= sha1:U9OkGc3Kha4uuYq/h9irIQakWgM=
System-Type x86_64-unknown-linux-gnu
Blat Foop
Xref x330-a1.tempe.blueboxinc.net comp.lang.c++:7745

Show key headers only | View raw


Michael DOUBEZ <michael.doubez@free.fr> writes:
> hash_set is not part of c++. It was specified in STL SGI but was not
> included in the standard. g++ provides it as a backward compatibility
> in the namespace __gnu_cxx.

For a non-ancient version of g++ (or any other compiler with
sufficient c++0x support), wouldn't it be better to just use
"unordered_set" instead?  I thought that was basically just hash_set
with a different name (but an actual part of the standard)...

-Miles

-- 
It wasn't the Exxon Valdez captain's driving that caused the Alaskan oil spill.
It was yours.  [Greenpeace advertisement, New York Times, 25 February 1990]

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

hash_set was not declared even I #include<hash_set> eric <cneric12lin0@gmail.com> - 2011-07-11 23:42 -0700
  Re: hash_set was not declared even I #include<hash_set> Michael DOUBEZ <michael.doubez@free.fr> - 2011-07-12 00:48 -0700
    Re: hash_set was not declared even I #include<hash_set> Miles Bader <miles@gnu.org> - 2011-07-12 17:19 +0900
      Re: hash_set was not declared even I #include<hash_set> Michael DOUBEZ <michael.doubez@free.fr> - 2011-07-12 03:27 -0700

csiph-web