• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            kenlistian

            厚積薄發(fā). 勤為槳,思為帆

               :: 首頁 :: 新隨筆 ::  :: 聚合  :: 管理 ::
              73 隨筆 :: 4 文章 :: 22 評論 :: 0 Trackbacks

             采用bind1st和bind2nd的意思,就是把參數(shù)綁定在第一位還是第二位。
            繼承于binary_function 類.
            描述如下
            Class binder1st binds the value to the first argument of the binary function, and binder2nd does the same thing
            for the second argument of the function.

            如下:例子

            struct compare_str :binary_function<ST_DataResult*, char*, bool>
            {
            public:
                bool operator()(ST_DataResult* pDataRet, char* szTypeCode) const
                {
                    return strcmp(pDataRet->sType , szTypeCode) == 0 ? true : false;
                   
                }
            };


            。。。

            char szTypeCode[4] = {'\0'};
            strcpy(szTypeCode, sTypeCode);
            pIt = find_if(m_d_ret_data.begin(), m_d_ret_data.end(),
                    bind2nd(compare_str(), szTypeCode));

            其中把szTypeCode變量傳入到compare_str所定義的第二個參數(shù)位置傳入。
            如果寫成bind1nd, 則是把szTypeCode作為第一個參數(shù)傳入,那么會報錯。
            因?yàn)轭愋筒粚Α?br>

            posted on 2008-07-14 16:56 kenlistian 閱讀(891) 評論(0)  編輯 收藏 引用 所屬分類: cpp
            伊人色综合久久天天网| 久久狠狠高潮亚洲精品| 狠狠人妻久久久久久综合| 久久久久无码精品国产app| 精品熟女少妇AV免费久久 | 日本人妻丰满熟妇久久久久久| 久久精品国产亚洲AV影院 | 久久久久久久波多野结衣高潮| 人妻精品久久无码区| 久久久久久亚洲精品不卡| 狠狠色丁香久久婷婷综合蜜芽五月| 亚洲国产精品成人久久| 久久黄视频| 品成人欧美大片久久国产欧美| 性做久久久久久久| 伊人久久大香线蕉综合5g| 93精91精品国产综合久久香蕉| 久久中文字幕人妻熟av女| 国产精品女同一区二区久久| 久久婷婷五月综合色高清| 久久人人爽人人人人爽AV| 久久婷婷五月综合国产尤物app | 国产高潮国产高潮久久久| 久久久久亚洲AV片无码下载蜜桃| 99热都是精品久久久久久| 99久久成人国产精品免费| 青青草原精品99久久精品66| 久久婷婷五月综合97色直播 | 久久久久久亚洲精品不卡| 久久丝袜精品中文字幕| 久久久久亚洲AV成人网人人软件| 韩国三级大全久久网站| 精品久久久久久亚洲| 久久成人影院精品777| 色成年激情久久综合| 四虎国产永久免费久久| A级毛片无码久久精品免费| 久久黄视频| 久久精品人妻中文系列| 日韩av无码久久精品免费| 秋霞久久国产精品电影院|