• <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 閱讀(1860) 評論(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| 中文国产成人精品久久不卡| 国产A级毛片久久久精品毛片| A级毛片无码久久精品免费| 精品久久久无码人妻中文字幕| 久久婷婷五月综合色奶水99啪| segui久久国产精品| 精品多毛少妇人妻AV免费久久| avtt天堂网久久精品| 香蕉久久久久久狠狠色| 好属妞这里只有精品久久| 久久99精品久久久久久9蜜桃| 无遮挡粉嫩小泬久久久久久久| 狠狠色丁香久久婷婷综| 亚洲午夜精品久久久久久浪潮| 久久亚洲春色中文字幕久久久| 久久久久人妻一区精品 | 久久91精品国产91| 久久亚洲AV成人出白浆无码国产 | 99久久做夜夜爱天天做精品| 国产产无码乱码精品久久鸭 | 亚洲va久久久久| AV无码久久久久不卡蜜桃| 久久精品国产2020| 欧美性猛交xxxx免费看久久久| 99久久99久久| 人妻无码中文久久久久专区| 亚洲成av人片不卡无码久久| 久久99热这里只有精品国产| 狠狠色婷婷综合天天久久丁香| 日日噜噜夜夜狠狠久久丁香五月| 亚洲伊人久久综合影院| 久久996热精品xxxx| 66精品综合久久久久久久| 77777亚洲午夜久久多喷| 久久亚洲私人国产精品| av无码久久久久不卡免费网站| 成人久久精品一区二区三区| 久久久久人妻一区精品色| 久久久91精品国产一区二区三区 |