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

            久久午夜免费视频| 久久香综合精品久久伊人| 久久国产色AV免费观看| 999久久久无码国产精品| 国产精品久久久久乳精品爆| 一本色道久久88综合日韩精品| 国产一久久香蕉国产线看观看| 亚洲欧美另类日本久久国产真实乱对白 | 久久国产精品久久精品国产| 亚洲狠狠综合久久| 久久久久av无码免费网| 武侠古典久久婷婷狼人伊人| 久久av无码专区亚洲av桃花岛| 久久夜色精品国产| 丁香五月网久久综合| 日韩欧美亚洲综合久久影院Ds| 久久99热国产这有精品| 久久一日本道色综合久久| 国内精品免费久久影院| 久久国产色AV免费看| 久久青青草原亚洲av无码app| 久久亚洲AV无码精品色午夜| 久久人搡人人玩人妻精品首页| 情人伊人久久综合亚洲| 久久亚洲精品无码VA大香大香| 香蕉久久影院| 日本久久中文字幕| 久久久免费观成人影院| 亚洲嫩草影院久久精品| 国产精品一久久香蕉国产线看观看| 色诱久久久久综合网ywww| 色88久久久久高潮综合影院| 久久国产AVJUST麻豆| 久久久久亚洲AV成人网| 91麻精品国产91久久久久| 国产精品99久久精品爆乳| 久久天天躁狠狠躁夜夜2020老熟妇 | 国产69精品久久久久777| 91久久精一区二区三区大全| 久久天天躁狠狠躁夜夜avapp| 亚洲av成人无码久久精品|