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

            久久九九亚洲精品| 久久人妻AV中文字幕| 久久亚洲欧美日本精品| 94久久国产乱子伦精品免费| 久久国产精品一区| 77777亚洲午夜久久多喷| www性久久久com| 久久国产三级无码一区二区| 国产99久久久国产精品小说| 国产精品美女久久久| 波多野结衣久久精品| 久久精品国产亚洲网站| 久久婷婷五月综合色奶水99啪| 国产亚洲婷婷香蕉久久精品| 久久毛片一区二区| 办公室久久精品| 亚洲va中文字幕无码久久不卡| 欧美久久精品一级c片片| 狠狠色婷婷久久综合频道日韩| 99精品久久久久久久婷婷| 久久精品国产99久久久古代| 93精91精品国产综合久久香蕉| 无码专区久久综合久中文字幕| 日韩电影久久久被窝网| 国产成人综合久久综合| 亚洲国产另类久久久精品黑人| 久久久久久av无码免费看大片| 久久免费线看线看| 国产精品免费福利久久| 亚洲精品乱码久久久久久久久久久久| 国产精品无码久久综合网| 国产国产成人精品久久| 国产精品对白刺激久久久| 久久亚洲精品人成综合网| 久久久久高潮综合影院| 久久精品亚洲AV久久久无码| 伊人色综合久久天天人守人婷| 久久夜色撩人精品国产| 久久久久九国产精品| 久久综合五月丁香久久激情| 狠狠精品干练久久久无码中文字幕|