• <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>
            posts - 58,  comments - 75,  trackbacks - 0

            ??? boost庫中MPL部分提供了Data_Types。其中提供了對數字類型的一個wrapper
            ??? 有一下這么幾個,都在boost::mpl名字空間下
            ???
            ??? bool_ 是一個bool型的常量wrapper,頭文件 #include< boost/mpl/bool.hpp >
            ??? int_? 是一個int型的常量wrapper,頭文件 #include< boost/mpl/int.hpp >
            ??? long_ 是一個long型的常量wrapper,頭文件 #include< boost/mpl/long.hpp >
            ??? size_t 是一個std::size_t型的常量wrapper,頭文件 #include< boost/mpl/size_t.hpp >
            ??? integral_c 提供了對整形的一個通用wrapper,頭文件 #include< boost/mpl/integral_c.hpp >
            ???
            ??? 這些常量提供了如下的能力(假設一個常量類型 n )
            ??? 獲得常量類型包含的類型 n::value_type
            ??? 獲得常量類型的類型???? n::type
            ??? 獲得常量類型的值?????? n::value
            ??? 返回常量類型的值?????? n()
            ???
            ??? bool_部分
            ???
            ??? bool_的聲明如下
            ???
            ??? template< bool C >
            ??? struct bool_;
            ???
            ??? 庫中定義了兩個常用的bool型常量,true_和false_。定義分別如下
            ??? typedef bool_< true > true_;
            ??? typedef bool_< false > false_;
            ???
            ??? bool_特性如下
            ??? bool_< true >::value_type == bool
            ??? bool_< true >::type == bool< true >
            ??? bool_< true >::value == true
            ??? bool_< true >() == true
            ???
            ??? int_部分
            ???
            ??? int_的聲明如下
            ???
            ??? template< int N >
            ??? struct int_;
            ???
            ??? int_特性如下
            ??? int_< 10 >::value_type == int;
            ??? int_< 10 >::type == int_< 10 >;
            ??? int_< 10 >::value == 10;
            ??? int_< 10 >() == 10;
            ???
            ??? long_部分
            ???
            ??? long_的聲明如下
            ???
            ??? template< long N >
            ??? struct long_;
            ???
            ??? long_特性如下
            ??? long_< -500 >::value_type == long;
            ??? long_< -500 >::type == long_< -500 >;
            ??? long_< -500 >::value == -500;
            ??? long_< -500 >() == -500;
            ???
            ??? size_t部分
            ???
            ??? size_t的聲明如下
            ???
            ??? template< std::size_t N >
            ??? struct size_t;
            ???
            ??? size_t的特性如下
            ??? size_t< 20 >::value_type == std::size_t;
            ??? size_t< 20 >::type == size_t< 20 >;
            ??? size_t< 20 >::value == 20;
            ??? size_t< 20 >() == 20;
            ???
            ??? integral_c部分
            ???
            ??? integral_c的聲明如下
            ??? template< typename T, T N >
            ??? struct integral_c;
            ???
            ??? integral_c的特性如下
            ??? integral_c< short, 8 >::value_type == short;
            ??? integral_c< short, 8 >::type == integral_c< short, 8 >;
            ??? integral_c< short, 8 >::value == 8;
            ??? integral_c< short, 8 >() == 8;

            posted on 2007-03-10 14:10 walkspeed 閱讀(2001) 評論(0)  編輯 收藏 引用 所屬分類: STL、Boost、范型編程

            <2007年3月>
            25262728123
            45678910
            11121314151617
            18192021222324
            25262728293031
            1234567

            常用鏈接

            留言簿(4)

            隨筆分類(64)

            隨筆檔案(58)

            文章分類(3)

            文章檔案(3)

            相冊

            收藏夾(9)

            C++零碎

            好友

            搜索

            •  

            積分與排名

            • 積分 - 161510
            • 排名 - 163

            最新評論

            閱讀排行榜

            評論排行榜

            亚洲香蕉网久久综合影视| 国产∨亚洲V天堂无码久久久| 久久免费线看线看| 久久影院午夜理论片无码| 久久精品桃花综合| 久久国产精品99精品国产987| 久久国产成人亚洲精品影院| 久久久久久久精品妇女99| 免费观看成人久久网免费观看| 伊人久久大香线蕉综合热线| 国内精品久久久久久野外| 久久久久久精品免费免费自慰| 精品亚洲综合久久中文字幕| 久久精品免费一区二区| 国产精品无码久久四虎| 精品熟女少妇av免费久久| 伊色综合久久之综合久久| 久久综合久久久| 久久久精品国产sm调教网站| 亚洲国产精品综合久久网络| 国产亚洲美女精品久久久| 成人综合伊人五月婷久久| 亚洲精品无码久久久久| 国产精品一区二区久久精品涩爱| 精品999久久久久久中文字幕| 亚洲国产精品18久久久久久| 久久综合色老色| 久久亚洲精品无码VA大香大香| 久久成人18免费网站| 久久涩综合| 亚洲欧洲久久久精品| 国内精品久久久久影院亚洲| 久久这里的只有是精品23| 国产精品久久久久久五月尺| 狠狠色丁香久久婷婷综合图片| 综合久久给合久久狠狠狠97色| 精品视频久久久久| 久久伊人中文无码| 尹人香蕉久久99天天拍| 久久无码AV一区二区三区| 久久久久久国产精品无码下载|