c++ unordered_map kompilieren Problem mit g++

Ich bin mit g++ unter Ubuntu

g++ (Ubuntu 4.4.3-4ubuntu5) 4.4.3

Habe ich diesen code

#include<unordered_map>
using namespace std;

bool ifunique(char *s){
  unordered_map<char,bool> h;
  if(s== NULL){
    return true;
  }
  while(*s){
    if(h.find(*s) != h.end()){
      return false;
    }
    h.insert(*s,true);
    s++;
  }
  return false;
}

wenn ich kompilieren Sie mit

g++ mycode.cc

Bekam ich Fehler

 error: 'unordered_map' was not declared in this scope

Bin ich etwas fehlt?

InformationsquelleAutor icn | 2010-10-19

Schreibe einen Kommentar