討論串[問題] 利用 boost 的 Lambda 取代 C++0x:Lam …
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓2(2推 0噓 0→)留言2則,0人參與, 最新作者tinlans ( )時間15年前 (2010/07/17 07:04), 編輯資訊
0
0
1
內容預覽:
#include <boost/lambda/bind.hpp>. using namespace boost::lambda;. sort(v.begin(),. v.end(),. bind(&string::size, _1) < bind(&string::size, _2));. bind
(還有228個字)

推噓3(3推 0噓 11→)留言14則,0人參與, 最新作者spider391 (小乖)時間15年前 (2010/07/16 16:01), 編輯資訊
0
0
0
內容預覽:
在網路看到一個範例. #include <iostream>. #include <string>. #include <algorithm>. #include <vector>. #include <iterator>. using namespace std;. int main(int ar
(還有866個字)
首頁
上一頁
1
下一頁
尾頁