안녕하세요. STL의 hash_map에 대한 질문을 드리고자 합니다.
SGI의 hash_map 예제를 실행해보던중 g++에서 컴파일하려면
다음과 같이 해야함을 알게 되었습니다.
[code:1]#include <iostream>
#include <vector>
#include <algorithm>
#include <ext/hash_map>
using namespace std;
using namespace __gnu_cxx;
struct eqstr
{
bool operator()(const char* s1, const char* s2) const
{
return strcmp(s1, s2) == 0;
}
};
int main()
{