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

            woaidongmao

            文章均收錄自他人博客,但不喜標題前加-[轉貼],因其丑陋,見諒!~
            隨筆 - 1469, 文章 - 0, 評論 - 661, 引用 - 0
            數據加載中……

            std::unique,最后的仿函數,是基于“==”比較符號的

            #include <iostream>
            #include <algorithm>
            #include <vector>
            using namespace std;
            
            bool myfunction (int i, int j) {
              return (i==j);
            }
            
            int main () {
              int myints[] = {10,20,20,20,30,30,20,20,10};    // 10 20 20 20 30 30 20 20 10
              vector<int> myvector (myints,myints+9);
              vector<int>::iterator it;
            
              // using default comparison:
              it = unique (myvector.begin(), myvector.end()); // 10 20 30 20 10 30 20 20 10
                                                              //                ^
            
              myvector.resize( it - myvector.begin() );       // 10 20 30 20 10
            
              // using predicate comparison:
              unique (myvector.begin(), myvector.end(), myfunction);   // (no changes)
            
              // print out content:
              cout << "myvector contains:";
              for (it=myvector.begin(); it!=myvector.end(); ++it)
                cout << " " << *it;
            
              cout << endl;
            
              return 0;
            }
            

            posted on 2013-03-26 16:17 肥仔 閱讀(1834) 評論(0)  編輯 收藏 引用 所屬分類: Boost & STL

            一级a性色生活片久久无少妇一级婬片免费放 | 久久久久免费精品国产| 国产AV影片久久久久久| 成人久久久观看免费毛片| 久久99国产精品尤物| 亚洲人成伊人成综合网久久久 | 亚洲午夜久久久| 大伊人青草狠狠久久| 99re这里只有精品热久久| 久久亚洲美女精品国产精品| 色偷偷91久久综合噜噜噜噜| 精品久久久久久无码中文字幕| 婷婷五月深深久久精品| 亚洲精品美女久久久久99| 久久精品麻豆日日躁夜夜躁| 午夜久久久久久禁播电影| 久久天天躁狠狠躁夜夜躁2O2O| 亚洲国产日韩欧美综合久久| 日韩精品久久无码人妻中文字幕| 久久精品亚洲一区二区三区浴池| 精品亚洲综合久久中文字幕| 婷婷伊人久久大香线蕉AV | 久久久久国产精品人妻 | 香蕉久久av一区二区三区| 国产综合免费精品久久久| 国内精品久久久久影院一蜜桃 | 久久综合狠狠色综合伊人| 久久婷婷人人澡人人爽人人爱| 国产毛片久久久久久国产毛片| 久久精品国产亚洲AV高清热 | 久久99热精品| 日韩精品久久久久久久电影蜜臀 | 免费一级欧美大片久久网| 国产99久久久久久免费看| 久久精品国产精品国产精品污| 久久综合狠狠综合久久综合88| 一个色综合久久| 久久亚洲精品国产精品婷婷| 天天综合久久一二三区| 无夜精品久久久久久| 欧美久久久久久午夜精品|