2010-02-01から1ヶ月間の記事一覧

プログラミング楽しい

C++

おひさしぶりです。 今回はstd::bindを使ってネストしたクラスのメンバ変数を束縛してみます。 以下サンプル #include <iostream> #include <vector> #include <functional> // std::bind std::placeholders::_1 #include <algorithm> // std::for_each struct Hoge { Hoge() : i(1) {} int i; }; stru</algorithm></functional></vector></iostream>…