以下の内容はhttps://so-wh.at/entry/20090513/p2より取得しました。


sparse_hash_mapを使う

http://google-sparsehash.googlecode.com/
APIは普通のMapと変わらない感じ。

#include <iostream>
#include <google/sparse_hash_map>

using namespace std;
using namespace google;

int main() {
  typedef sparse_hash_map<const char *, const char *> cmap;
  cmap m;

  m["foo"] = "hoge";
  m["bar"] = "piyo";
  m["zoo"] = "fuga";

  for(cmap::iterator i = m.begin(); i != m.end(); i++) {
    cout << i->first << "=" << i->second << endl;
  }

  return 0;
}



以上の内容はhttps://so-wh.at/entry/20090513/p2より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14