• <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久久久久人妻精品专区| 久久精品99久久香蕉国产色戒 | 久久久久久一区国产精品| 999久久久免费国产精品播放| 2021少妇久久久久久久久久| 亚洲国产精品婷婷久久| 久久伊人色| 色综合久久久久无码专区| 亚洲午夜精品久久久久久人妖| 久久影视综合亚洲| www性久久久com| 久久亚洲高清综合| 久久AV高清无码| 天天做夜夜做久久做狠狠| WWW婷婷AV久久久影片| 亚洲国产天堂久久久久久| a级成人毛片久久| 伊人久久精品无码av一区| 亚洲国产精品久久久久婷婷老年| 久久人做人爽一区二区三区| 嫩草影院久久国产精品| 亚洲色大成网站WWW久久九九| 99久久精品九九亚洲精品| 久久国产精品无码一区二区三区| 精品综合久久久久久88小说| 国产欧美久久一区二区| 99精品国产99久久久久久97| 色综合久久久久综合99| 国产成人香蕉久久久久| 久久国产高清字幕中文| 婷婷综合久久中文字幕蜜桃三电影| 武侠古典久久婷婷狼人伊人| 91亚洲国产成人久久精品网址| 久久99精品国产自在现线小黄鸭| 一级女性全黄久久生活片免费| 久久精品亚洲男人的天堂| 亚洲精品高清久久| 久久久久人妻精品一区三寸蜜桃| 国产成人无码精品久久久久免费| 99精品伊人久久久大香线蕉| 亚洲国产成人久久精品影视|