• <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

            厚積薄發. 勤為槳,思為帆

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

             采用bind1st和bind2nd的意思,就是把參數綁定在第一位還是第二位。
            繼承于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所定義的第二個參數位置傳入。
            如果寫成bind1nd, 則是把szTypeCode作為第一個參數傳入,那么會報錯。
            因為類型不對。


            posted on 2008-07-14 16:56 kenlistian 閱讀(881) 評論(0)  編輯 收藏 引用 所屬分類: cpp
            精品久久久久久中文字幕大豆网 | 久久久久亚洲精品中文字幕| 久久久91人妻无码精品蜜桃HD| 久久精品中文字幕第23页| 久久亚洲AV成人无码| 久久ww精品w免费人成| 精品人妻伦九区久久AAA片69 | av无码久久久久不卡免费网站| 青青草原综合久久| 伊人久久综合无码成人网 | 曰曰摸天天摸人人看久久久| 2021国内久久精品| 国产精品成人99久久久久| 无码人妻精品一区二区三区久久 | 99久久精品费精品国产| 亚洲精品乱码久久久久久蜜桃不卡 | 岛国搬运www久久| 九九精品99久久久香蕉| 久久亚洲国产精品成人AV秋霞| 草草久久久无码国产专区| 粉嫩小泬无遮挡久久久久久| 伊人久久大香线蕉亚洲五月天| 久久久久亚洲AV综合波多野结衣 | 伊人久久大香线蕉亚洲五月天| 免费一级做a爰片久久毛片潮| 中文字幕成人精品久久不卡| 国内精品久久久久久99蜜桃| 亚洲综合熟女久久久30p| 久久久国产视频| 久久久久亚洲精品日久生情| 久久夜色精品国产www| 久久综合视频网站| 久久久久亚洲AV成人网| 久久精品国产亚洲AV不卡| 久久久久亚洲AV无码去区首| 久久久久久国产精品免费免费| 国内精品久久久久久麻豆| 久久精品国产亚洲7777| 区亚洲欧美一级久久精品亚洲精品成人网久久久久 | 久久精品国产亚洲av麻豆色欲| 7777精品伊人久久久大香线蕉|