• <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>
            隨筆 - 64, 文章 - 11, 評論 - 12, 引用 - 0
            數(shù)據(jù)加載中……

            c++0x 系列

            result_of 用于推導(dǎo)可調(diào)用對象的返回類型。
            大致定義:
            template<class Ty>
                struct result_of {
                typedef T0 type;
                };
            Ty: 可調(diào)用類型,

            The template class defines its member type as a synonym for the return type of a function call described by its template argument Ty. The template argument must be of the form Fty(T1, T2, ..., TN), where Fty is a callable type. The template determines the return type according to the first of the following rules that applies:

            • if Fty is a pointer to function type R(*)(U1, U2, ..., UN) the return type is R;

            • 如果Fty是個R(*)(U1, U2, ..., UN) 函數(shù)指針,那么返回類型是R

            • if Fty is a reference to function type R(&)(U1, U2, ..., UN) the return type is R;

            • 如果Fty是個R(&)(U1, U2, ..., UN) 函數(shù)指針,那么返回類型是R

            • if Fty is a pointer to member function type R(U1::*)(U2, ..., UN) the return type is R;

            • 如果Fty是個R(U1::*)(U2, ..., UN)成員函數(shù)指針,那么返回類型是R

            • if Fty is a pointer to data member type R U1::* the return type is R;

            • 如果Fty是個R U1::* 成員變量指針,那么返回類型是R

            • if Fty is a class with a member typedef result_type the return type is Fty::result_type;

            • 如果Fty是一個類并且其中定義了result_type ,那么返回類型是Fty::result_type

            • if N is 0 (that is, Ty is of the form Fty()) the return type is void;

            • 如果Fty函數(shù)不帶有任何的參數(shù),那么返回類型是void

            • if Fty is a class with a member template named result the return type is Fty::result<T1, T2, ..., TN>::type;

            • 如果Fty是個類并且有個成員模板是result,那么返回類型是Fty::result<T1, T2, ..., TN>::type

            • in all other cases it is an error.

            • 其它情況就會出錯

            posted on 2011-07-29 10:24 Robertxiao 閱讀(157) 評論(0)  編輯 收藏 引用 所屬分類: C++ Tech


            只有注冊用戶登錄后才能發(fā)表評論。
            網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


            噜噜噜色噜噜噜久久| 久久午夜夜伦鲁鲁片免费无码影视 | 久久99精品久久久久子伦| 久久综合香蕉国产蜜臀AV| 2021久久国自产拍精品| 夜夜亚洲天天久久| 亚洲欧美精品一区久久中文字幕| 人妻久久久一区二区三区| 伊人久久综在合线亚洲2019| 亚洲国产综合久久天堂| 久久久久久亚洲精品成人| 久久精品99无色码中文字幕| 99精品国产免费久久久久久下载| 亚洲综合精品香蕉久久网| 国内精品久久久久久中文字幕| 精品国产乱码久久久久软件| 香蕉久久一区二区不卡无毒影院| 思思久久99热只有频精品66| 久久93精品国产91久久综合| 国内精品伊人久久久久AV影院| 精品伊人久久久| 亚洲欧美日韩久久精品| 伊人丁香狠狠色综合久久| 亚洲AV乱码久久精品蜜桃| 日韩欧美亚洲国产精品字幕久久久| 97久久精品无码一区二区天美| 亚洲精品乱码久久久久久自慰 | 久久婷婷五月综合97色一本一本| 久久国产精品波多野结衣AV| 麻豆精品久久久一区二区| 香蕉久久av一区二区三区| 国产成人精品综合久久久久| 亚洲精品NV久久久久久久久久| 久久本道久久综合伊人| 99久久国产综合精品五月天喷水| 99久久国产热无码精品免费| 亚洲AV日韩精品久久久久| 亚洲av日韩精品久久久久久a| 色综合久久无码五十路人妻| 无码超乳爆乳中文字幕久久| 麻豆AV一区二区三区久久|