2008-03-18から1日間の記事一覧

簡易ラムダ

C++

山本隆の開発日誌 - C++でラムダ・クラス こんな方法でラムダできたんですね #include <vector> #include <algorithm> #include <functional> using namespace std; class lambda { template <class T> friend binder1st<greater<T> > operator<(const lambda&, const T& value) { return bind1st(greater<T>(), val</t></greater<t></class></functional></algorithm></vector>…