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

            雁過無痕

              C++博客 :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            int x;
            decltype(x) 和  decltype((x))    的類型是不一樣的。
            decltype(x) 和  decltype(*&x)   的類型是不一樣的。

            decltype(x)的類型是 int
            decltype((x)) 和 decltype(*&x)  的類型是 int&

            C++11標準:
            The type denoted by decltype(e) is defined as follows:
              — if e is an unparenthesized id-expression or an unparenthesized class member
                 access (5.2.5), decltype(e) is the type of the entity named by e. If there
                 is no such entity, or if e names a set of overloaded functions, the program
                 is ill-formed;
              — otherwise, if e is an xvalue, decltype(e) is T&&, where T is the type of e;
              — otherwise, if e is an lvalue, decltype(e) is T&, where T is the type of e;
              — otherwise, decltype(e) is the type of e.
            posted on 2012-08-14 21:19 flyinghearts 閱讀(1870) 評論(5)  編輯 收藏 引用 所屬分類: C++

            評論

            # re: decltype的小“陷阱” 2012-08-14 21:39 Cheap lace wigs
            decltype 這個如果不注意確實容易犯錯啊,不錯,學習了  回復  更多評論
              

            # re: decltype的小“陷阱”[未登錄] 2012-08-15 09:10 Chipset
            加入thread和一些必要的庫也就罷了。弄一堆形式上的寫法無非少敲幾次鍵盤,形式上看起來爽點,沒有任何實用價值,感覺C++越來越花哨了。  回復  更多評論
              

            # re: decltype的小“陷阱”[未登錄] 2012-08-15 09:12 Chipset
            語法越來越復雜,太多的人不得不浪費太多時間熟悉那些花哨的東西,工業語言是這么進化的嗎??C++總會有一天死在這幫家伙們的手里。。。  回復  更多評論
              

            # re: decltype的小“陷阱” 2012-08-15 23:26 tb
            呵呵 看來大家在這里都容易犯錯啊   回復  更多評論
              

            # re: decltype的小“陷阱” 2012-08-19 16:13 gbb21
            好!  回復  更多評論
              

            亚洲精品乱码久久久久久蜜桃| 97精品伊人久久久大香线蕉 | 婷婷久久五月天| 亚洲人成精品久久久久| 久久不射电影网| 一本久久免费视频| 精品国产乱码久久久久久1区2区| 丁香五月综合久久激情| 国产欧美久久久精品影院| 久久综合久久久| 久久久一本精品99久久精品66| 91精品国产高清久久久久久91| 久久精品aⅴ无码中文字字幕不卡| 久久99国产亚洲高清观看首页| 久久婷婷色香五月综合激情| 精品精品国产自在久久高清| 思思久久99热只有频精品66| 久久中文字幕一区二区| 久久精品无码午夜福利理论片| 亚洲欧美国产精品专区久久 | 久久亚洲精品成人AV| 久久精品99无色码中文字幕| 精品999久久久久久中文字幕| 久久精品无码一区二区WWW| 久久噜噜久久久精品66| segui久久国产精品| 国产91色综合久久免费| 久久久无码一区二区三区| 思思久久99热只有频精品66| 久久青青草原精品国产软件| 亚洲国产二区三区久久| AV狠狠色丁香婷婷综合久久 | 久久久久久久免费视频| 久久久亚洲精品蜜桃臀| 久久人妻少妇嫩草AV蜜桃| 99久久精品无码一区二区毛片| 一级做a爰片久久毛片人呢| 91久久精品91久久性色| 韩国三级大全久久网站| 色综合色天天久久婷婷基地| 91精品久久久久久无码|