锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产精品va在线,亚洲香蕉视频,亚洲一区美女视频在线观看免费http://m.shnenglu.com/r2100/category/21113.htmlzh-cnSun, 28 Jun 2015 15:44:29 GMTSun, 28 Jun 2015 15:44:29 GMT60boost bind,functionhttp://m.shnenglu.com/r2100/articles/211078.htmlr2100r2100Sun, 28 Jun 2015 15:25:00 GMThttp://m.shnenglu.com/r2100/articles/211078.htmlhttp://m.shnenglu.com/r2100/comments/211078.htmlhttp://m.shnenglu.com/r2100/articles/211078.html#Feedback0http://m.shnenglu.com/r2100/comments/commentRss/211078.htmlhttp://m.shnenglu.com/r2100/services/trackbacks/211078.html
 1 // boost.cpp : 瀹氫箟鎺у埗鍙板簲鐢ㄧ▼搴忕殑鍏ュ彛鐐廣?br /> 2 //
 3 
 4 #include "stdafx.h"
 5 
 6 #include <iostream>  
 7 #include <boost/thread/thread.hpp>  
 8 #include <boost/bind.hpp>
 9 #include <boost/function.hpp>
10 void hello(int i, int j)  
11 {  
12     std::cout << "Hello world, I'm a thread!" << std::endl;  
13     std::cout<< i+j << std::endl;
14 }  
15 
16 class A
17 {
18 public:
19     void hello(int i, int j){
20         std::cout<<i+j<<std::endl;
21     }
22 };
23 
24 int _tmain(int argc, _TCHAR* argv[])
25 {
26     //boost::thread thrd(&hello);  
27     //thrd.join(); 
28 // bind
29 //     A a;
30 //     boost::bind(&A::hello, a, 1, 2)(1,2);
31 //     boost::function<void(int,int)> f;
32 
33 // function
34 //     boost::function<void(int,int)> f;
35 //     f = hello;
36 //     f(1,2);
37 
38     A a;
39     boost::function<void(A,intint)> cf;
40     cf=&A::hello;
41     cf(a,1,2);
42 
43 // bind & function    
44 //     boost::function<void(int,int)> f;
45 //     f=boost::bind(hello,_1,_2);
46 //     f(1,1);
47 // 
48 //     A a;
49 //     boost::function<void(int, int)> cf;
50 //     cf=boost::bind(&A::hello,a,_1,_2);
51 //     cf(1,1);
52 // 
53 //     boost::function<>
54 
55     return 0;
56 }
57 


r2100 2015-06-28 23:25 鍙戣〃璇勮
]]>
免费观看久久精彩视频| 久久久久久国产a免费观看不卡| 久久这里只有精品首页| 精品久久8x国产免费观看| 久久99国产亚洲高清观看首页 | 国产精品18久久久久久vr| 国产精品美女久久久| 精品久久久久久久中文字幕| 一本色道久久综合亚洲精品| 88久久精品无码一区二区毛片| 九九精品久久久久久噜噜| 久久国产精品99精品国产987| 亚洲欧美成人久久综合中文网| 精品国产91久久久久久久| 久久人人爽人人爽人人片AV麻烦| 国产精品成人精品久久久 | 久久人妻无码中文字幕| 精品久久综合1区2区3区激情| 性欧美大战久久久久久久久 | 亚洲国产精品无码成人片久久| 久久久精品久久久久久| 亚洲伊人久久大香线蕉苏妲己| 日产精品久久久久久久性色| 久久综合亚洲色HEZYO国产| 久久精品国产秦先生| 97久久精品人妻人人搡人人玩| 99精品国产99久久久久久97| 国内精品久久久久久中文字幕 | 污污内射久久一区二区欧美日韩 | 久久精品国产精品亚洲精品| 久久99亚洲网美利坚合众国| 国内精品伊人久久久久av一坑| 国产精品一区二区久久精品无码| 国产亚洲美女精品久久久2020| 色综合久久久久网| 婷婷久久久亚洲欧洲日产国码AV| 久久久午夜精品福利内容| 久久人人爽人人爽人人片AV东京热| 久久这里只有精品视频99| 武侠古典久久婷婷狼人伊人| 欧美一级久久久久久久大|