• <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 閱讀(1878) 評論(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
            好!  回復  更多評論
              

            久久久久久噜噜精品免费直播| 99久久免费国产特黄| 欧美久久久久久| 久久人妻AV中文字幕| 91精品国产高清久久久久久io| 亚洲国产精品婷婷久久| 亚洲精品无码久久不卡| 国产午夜精品久久久久免费视| 久久99亚洲综合精品首页| 久久超乳爆乳中文字幕| 久久人人爽人人爽AV片| 99久久99久久| 久久99国产精品尤物| 久久婷婷五月综合国产尤物app| 日本免费久久久久久久网站| 久久午夜福利无码1000合集| 国产福利电影一区二区三区久久老子无码午夜伦不 | 无码任你躁久久久久久| 久久精品国产亚洲av麻豆色欲 | 久久精品国产69国产精品亚洲| 色综合久久夜色精品国产| 久久精品国产精品亚洲人人| 久久ZYZ资源站无码中文动漫| 亚洲伊人久久综合中文成人网| 亚洲国产精品热久久| 国产精品久久久久…| 久久精品国产亚洲AV嫖农村妇女| 亚洲国产成人精品久久久国产成人一区二区三区综 | 久久免费大片| 精品久久久久一区二区三区| 久久精品国产亚洲网站| 精品久久久无码人妻中文字幕豆芽| 久久精品久久久久观看99水蜜桃| 欧美伊人久久大香线蕉综合69 | 久久久久亚洲精品日久生情| 久久夜色精品国产| 亚洲国产成人久久综合碰| 久久综合鬼色88久久精品综合自在自线噜噜| 9191精品国产免费久久| 久久久青草青青国产亚洲免观| 理论片午午伦夜理片久久|