• <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 閱讀(152) 評論(0)  編輯 收藏 引用 所屬分類: C++ Tech

            久久人人爽人人人人片av| 亚洲乱码精品久久久久..| 99久久国产综合精品成人影院| 国产精品一区二区久久国产| 久久久久久人妻无码| 亚洲一区中文字幕久久| 色欲综合久久躁天天躁| 久久精品国产亚洲AV无码麻豆 | 中文字幕亚洲综合久久| 久久精品成人| 精品免费久久久久久久| 久久久久久久久久久免费精品| 无码久久精品国产亚洲Av影片| 精品乱码久久久久久夜夜嗨| av色综合久久天堂av色综合在 | 久久综合国产乱子伦精品免费| 精品久久久噜噜噜久久久| 久久精品亚洲精品国产欧美| 亚洲午夜久久久影院伊人| 精品欧美一区二区三区久久久| 久久国产热精品波多野结衣AV| 久久一区二区三区免费| 精品熟女少妇av免费久久| 久久AV无码精品人妻糸列| 97精品伊人久久久大香线蕉| 久久综合久久自在自线精品自 | 久久综合亚洲欧美成人| 亚洲国产精品成人AV无码久久综合影院 | 国产精品久久亚洲不卡动漫| 思思久久精品在热线热| 久久久久亚洲av毛片大| 久久精品成人| 久久99国产精品成人欧美| 久久久久久免费一区二区三区| 久久精品亚洲日本波多野结衣 | 亚洲一区二区三区日本久久九| 久久亚洲精品无码AV红樱桃| 久久精品免费全国观看国产| 欧美久久久久久精选9999| 久久国产福利免费| 国产毛片久久久久久国产毛片|