Welcome to HKOI Webnews!

標題 Re: STL implementation used in HKOJ
發信者 siuon <sochan@gmail.com>
發信日期 Sat, 06 Feb 2010 13:26:57 -0800
新聞組 hkoi

We're using the STL that comes with GNU C++ (3.x I guess?).  In this
implementation, certain classes (such as hash_map) are considered to be
part of an ??extension??.  They are found in the ??ext?? subdirectory and
live in the __gnu_cxx namespace.

An example of how hash_map is used:

#include <ext/hash_map>
using namespace __gnu_cxx;

int main() {
   hash_map<int,int> M;
}


On 2/6/10 2:50 AM, jasperleeabc wrote:
> Hi,
>
> I would like to ask if the STL implementation used is the SGI one? Somehow I
> have difficulties compiling hash_map on it.
>
> Thanks.
>
>


相關的信件
 
-# STL implementation used in HKOJ jasperleeabc 06-Feb-2010 06:50 pm
.-# Re: STL implementation used in HKOJ (現正閱讀) siuon 07-Feb-2010 05:26 am
..-# Re: STL implementation used in HKOJ jasperleeabc 07-Feb-2010 11:54 am
..|\# Re: STL implementation used in HKOJ Hey 16-Feb-2010 06:37 pm
..\# Re: STL implementation used in HKOJ jasperleeabc 07-Feb-2010 09:25 pm