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


            亚洲国产精品无码久久SM| 亚洲国产小视频精品久久久三级 | 久久国语露脸国产精品电影| 一本久久a久久精品综合香蕉| 伊人久久久AV老熟妇色| 久久青青草原国产精品免费| 午夜视频久久久久一区| 99久久人妻无码精品系列| 久久一区二区三区免费| 99久久超碰中文字幕伊人| 亚洲精品tv久久久久| 99久久久久| 国产成人久久激情91| 久久狠狠爱亚洲综合影院| 久久www免费人成看国产片| 亚洲国产精品无码久久久秋霞2| 久久国产精品免费一区二区三区| 久久九九久精品国产免费直播| 久久97久久97精品免视看秋霞| AV无码久久久久不卡网站下载| 国产偷久久久精品专区| 久久久久国色AV免费看图片| 2021少妇久久久久久久久久| 亚洲综合日韩久久成人AV| 香蕉久久夜色精品国产2020| 久久久久久国产a免费观看不卡 | 久久99精品久久只有精品 | 亚洲AV无码久久精品成人| 午夜视频久久久久一区| 蜜臀久久99精品久久久久久| 91精品国产色综久久| 久久99国产精品久久久| MM131亚洲国产美女久久| 久久国产乱子伦精品免费强| 久久精品无码专区免费青青 | aaa级精品久久久国产片| 久久青青草原亚洲av无码app | 久久免费高清视频| 91久久精品无码一区二区毛片| 精品免费tv久久久久久久| 日本久久久久久中文字幕|