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

            雁過(guò)無(wú)痕

            int x;
            decltype(x) 和  decltype((x))    的類型是不一樣的。
            decltype(x) 和  decltype(*&x)   的類型是不一樣的。

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

            C++11標(biāo)準(zhǔn):
            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) 評(píng)論(5)  編輯 收藏 引用 所屬分類: C++

            評(píng)論

            # re: decltype的小“陷阱” 2012-08-14 21:39 Cheap lace wigs
            decltype 這個(gè)如果不注意確實(shí)容易犯錯(cuò)啊,不錯(cuò),學(xué)習(xí)了  回復(fù)  更多評(píng)論
              

            # re: decltype的小“陷阱”[未登錄](méi) 2012-08-15 09:10 Chipset
            加入thread和一些必要的庫(kù)也就罷了。弄一堆形式上的寫法無(wú)非少敲幾次鍵盤,形式上看起來(lái)爽點(diǎn),沒(méi)有任何實(shí)用價(jià)值,感覺(jué)C++越來(lái)越花哨了。  回復(fù)  更多評(píng)論
              

            # re: decltype的小“陷阱”[未登錄](méi) 2012-08-15 09:12 Chipset
            語(yǔ)法越來(lái)越復(fù)雜,太多的人不得不浪費(fèi)太多時(shí)間熟悉那些花哨的東西,工業(yè)語(yǔ)言是這么進(jìn)化的嗎??C++總會(huì)有一天死在這幫家伙們的手里。。。  回復(fù)  更多評(píng)論
              

            # re: decltype的小“陷阱” 2012-08-15 23:26 tb
            呵呵 看來(lái)大家在這里都容易犯錯(cuò)啊   回復(fù)  更多評(píng)論
              

            # re: decltype的小“陷阱” 2012-08-19 16:13 gbb21
            好!  回復(fù)  更多評(píng)論
              

            精品综合久久久久久97超人 | 97久久精品人人澡人人爽| 色偷偷88888欧美精品久久久| 人妻精品久久久久中文字幕69| 久久成人国产精品| 久久最新免费视频| 久久亚洲精品人成综合网| 日韩亚洲欧美久久久www综合网 | AV色综合久久天堂AV色综合在| 久久99精品久久久久久久不卡| 蜜桃麻豆www久久国产精品| AAA级久久久精品无码片| 伊人久久五月天| 国产精品久久永久免费| 伊人久久五月天| 欧美久久一级内射wwwwww.| 久久久久久久久久久久中文字幕 | 久久九九亚洲精品| 久久综合亚洲欧美成人| 久久只这里是精品66| 久久国产成人午夜aⅴ影院 | 91麻豆国产精品91久久久| 久久91这里精品国产2020| 日韩精品久久久肉伦网站| 日韩人妻无码一区二区三区久久99| 国产免费久久久久久无码| 久久亚洲精品视频| 久久99精品久久久久久hb无码 | 国产精品激情综合久久| 精品久久无码中文字幕| 色欲综合久久中文字幕网| 伊人久久大香线蕉综合网站| 久久久久国产一区二区| 人人狠狠综合久久亚洲| 久久国产精品无| 久久久免费观成人影院| 久久精品国产亚洲7777| 色综合久久夜色精品国产| 亚洲国产成人精品久久久国产成人一区二区三区综 | 99久久国产综合精品麻豆| 久久99久久99小草精品免视看|