タグ

ブックマーク / cpplover.blogspot.com (2)

  • unordered_setはどのくらい早いのか。

    unorderd_setの速度を調べるために、以下のコードを書いた。VC9で実行した結果、以下のようになった。 class std::set<unsigned int,struct std::less<unsigned int>,class std::allocator<unsigned int> > insert : 0.284398 find : 0.102093 class stdext::hash_set<unsigned int,class stdext::hash_compare<unsigned int,struct std::less<unsigned int> >,class std::allocator<unsigned int> > insert : 0.293333 find : 0.0481863 class boost::unordered_set<unsign

    mogwaing
    mogwaing 2009/01/30
    set, hash_set, unordered_set
  • Concepts Extending C++ Templates For Generic Programming

    この情報は恐ろしく昔のもので、現在のドラフト規格とまったくあっておりません。検索で飛んでこられた方は、この情報を信用せず、ご自分で規格をご確認ください。 これは最高にためになる動画だ。 コンセプトとは、C++のパラダイムのひとつ、ジェネリックプログラミングを、もっと分かりやすくするための文法だ。 前半の5分ほどは、ジェネリックプログラミングはなんであるかを解説している。 The reason we think that we can make it simpler is that many of the way people use template now are... tricks! There're complelcated tricks. You can't even read in the book in many faces. You have to dig for newsg

  • 1