• <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
            數據加載中……

            c++0x 系列

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

            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) 函數指針,那么返回類型是R

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

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

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

            • 如果Fty是個R(U1::*)(U2, ..., UN)成員函數指針,那么返回類型是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函數不帶有任何的參數,那么返回類型是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 閱讀(161) 評論(0)  編輯 收藏 引用 所屬分類: C++ Tech

            成人亚洲欧美久久久久| 久久99国产精品一区二区| a级毛片无码兔费真人久久| 性色欲网站人妻丰满中文久久不卡| 欧美一区二区三区久久综| 天天综合久久久网| 97精品依人久久久大香线蕉97 | 国产亚洲欧美成人久久片| 日本一区精品久久久久影院| 精品一久久香蕉国产线看播放 | 亚洲乱亚洲乱淫久久| 久久亚洲熟女cc98cm| 91秦先生久久久久久久| 欧美午夜A∨大片久久| 成人精品一区二区久久久| 性做久久久久久久久| 2022年国产精品久久久久| 亚洲中文字幕久久精品无码APP| 99久久久精品免费观看国产| 久久精品人人槡人妻人人玩AV | 久久91精品久久91综合| 日韩久久久久中文字幕人妻| 国产情侣久久久久aⅴ免费| 色偷偷88欧美精品久久久 | 国产成人精品白浆久久69| 久久久青草青青国产亚洲免观| 国产精品伦理久久久久久| 久久人妻少妇嫩草AV无码专区| 亚洲国产精品无码久久青草| 久久久久亚洲精品无码网址| 国产精品岛国久久久久| 久久综合88熟人妻| 国内高清久久久久久| 欧美一级久久久久久久大片| 国产精品久久久久乳精品爆| 97精品久久天干天天天按摩| 久久久亚洲欧洲日产国码aⅴ | 久久99国产精品99久久| 国内精品久久久久久99蜜桃 | 亚洲成人精品久久| 久久精品国产99国产精品澳门|