青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

void main() { }

Hello ,world !

常用鏈接

統計

最新評論

test Loki::Typelist

      昨晚,測試  Loki C++ 庫 Typelist.h 的一些功能 -- 在BCB 6.0 環境下 。隨便曬曬了:

//---------------------------------------------------------------------------
#include <vcl.h>
#include 
<iostream>
#include 
<string> 
#include 
<typeinfo>
#include 
<windows.h>

using namespace std;
#include 
"loki\Typelist.h"

int main(int argc,char* argv[])
{
    
using namespace Loki ;   

// ---- test TYPELIST_N -----------------
    cout << " ---- test TYPELIST_N -----" << "\n" ;
    typedef TYPELIST_4(signed 
charshort intintlong int)
            SignedIntegrals ;
    cout 
<< " typedef TYPELIST_4(signed char, short int, int, long int)"
         
<< " SignedIntegrals ;" << "\n" ;

// ---- test Length<>  -----------------
    cout << " ---- test Length<>  -----" << "\n" ;
    cout 
<< TL::Length<SignedIntegrals>::value << "\n" ;
    cout 
<< typeid(TL::TypeAt<SignedIntegrals ,1>::Result).name() << "\n" ; 
// ---- test IndexOf -----------------
    cout << TL::IndexOf<SignedIntegrals ,int>::value << "\n" ;
// ---- test Append<>  -----------------
    cout << " ---- test Append<>  ----" << "\n" ;
    typedef TL::Append
<SignedIntegrals ,string>::Result Result ;
    cout 
<< TL::Length<Result>::value << "\n" ; //
    cout << typeid(TL::TypeAt<Result ,4>::Result).name() << "\n" ;
    
// or : typedef TYPELIST_2(string ,String) SString ; //sString
    typedef TL::Append<Result ,TYPELIST_2(string ,String) >::Result Result ;
    cout 
<< TL::Length<Result>::value << "\n" ;
    
//for(int i=0 ;i<TL::Length<Result>::value ;i++)     //
        
//cout << typeid(TL::TypeAt<Result ,ConstI>::Result).name() << "\n" ;
    
//[C++ Error] E2396 Template argument must be a constant expression

// ---- test TypeAt<>  -----------------
    cout << " ---- test TypeAt<>  ----" << "\n" ;
    cout 
<< typeid(TL::TypeAt<Result ,6>::Result).name() << "\n" ;
    cout 
<< typeid(TL::TypeAt<Result ,5>::Result).name() << "\n" ;
    cout 
<< typeid(TL::TypeAt<Result ,4>::Result).name() << "\n" ;
    cout 
<< typeid(TL::TypeAt<Result ,3>::Result).name() << "\n" ;
    cout 
<< typeid(TL::TypeAt<Result ,2>::Result).name() << "\n" ;
    cout 
<< typeid(TL::TypeAt<Result ,1>::Result).name() << "\n" ;
    cout 
<< typeid(TL::TypeAt<Result ,0>::Result).name() << "\n" ;
// ---- test Erase<>  -----------------
    cout << " ---- test Erase<>  ----" << "\n" ;
    cout 
<< TL::Length<TL::Erase<Result ,double>::Result>::value << "\n" ;// no double erase none
    cout << TL::Length<Result>::value << "\n" ;
    typedef TL::Erase
<Result ,string>::Result Result ; // erase string OK
    cout << TL::Length<Result>::value << "\n" ;
    typedef TL::Erase
<Result ,string>::Result Result ; // erase string OK
    cout << TL::Length<Result>::value << "\n" ;
    typedef TL::Erase
<Result ,string>::Result Result ;// no string erase none
    cout << TL::Length<Result>::value << "\n" ;
// ---- test Replace<>  -----------------
    cout << " ---- test Replace<>  ----" << "\n" ;
    cout 
<< TL::IndexOf<Result ,String>::value << "\n" ;// String exist -- 4     
    cout << TL::IndexOf<Result ,string>::value << "\n" ; // String doesn't exist -- -1
    typedef TL::Replace<Result ,String ,string>::Result Result ; // Replace String to string OK
    cout << TL::IndexOf<Result ,String>::value << "\n" ; // String doesn't exist -- -1
    cout << TL::IndexOf<Result ,string>::value << "\n" ; // string exist -- 4
// ---- test ReplaceAll<>  -----------------
    cout << " ---- test ReplaceAll<>  ----" << "\n" ;
    typedef TL::Append
<Result ,TYPELIST_2(string ,string>::Result Result ;
    cout 
<< typeid(TL::TypeAt<Result ,4>::Result).name() << "\n" ;
    cout 
<< typeid(TL::TypeAt<Result ,5>::Result).name() << "\n" ;
    cout 
<< typeid(TL::TypeAt<Result ,6>::Result).name() << "\n" ; 
    typedef TL::ReplaceAll
<Result ,string ,String >::Result Result ;   
    cout 
<< typeid(TL::TypeAt<Result ,4>::Result).name() << "\n" ;
    cout 
<< typeid(TL::TypeAt<Result ,5>::Result).name() << "\n" ;
    cout 
<< typeid(TL::TypeAt<Result ,6>::Result).name() << "\n" ;
// ---- test Reverse<>  -----------------
    cout << " ---- test Reverse<>  ----" << "\n" ;
    
using namespace Loki::TL ;
    cout 
<< Length<Result>::value << "\n" ;
    cout 
<< typeid(TL::TypeAt<Result ,0>::Result).name() << "\n" ;
    cout 
<< typeid(TL::TypeAt<Result ,1>::Result).name() << "\n" ;
    cout 
<< typeid(TL::TypeAt<Result ,2>::Result).name() << "\n" ;
    cout 
<< typeid(TL::TypeAt<Result ,3>::Result).name() << "\n" ;
    cout 
<< typeid(TL::TypeAt<Result ,4>::Result).name() << "\n" ;
    cout 
<< typeid(TL::TypeAt<Result ,5>::Result).name() << "\n" ;
    cout 
<< typeid(TL::TypeAt<Result ,6>::Result).name() << "\n" ;
    typedef Reverse
<Result>::Result Result ;
    cout 
<< typeid(TL::TypeAt<Result ,0>::Result).name() << "\n" ;
    cout 
<< typeid(TL::TypeAt<Result ,1>::Result).name() << "\n" ;
    cout 
<< typeid(TL::TypeAt<Result ,2>::Result).name() << "\n" ;
    cout 
<< typeid(TL::TypeAt<Result ,3>::Result).name() << "\n" ;
    cout 
<< typeid(TL::TypeAt<Result ,4>::Result).name() << "\n" ;
    cout 
<< typeid(TL::TypeAt<Result ,5>::Result).name() << "\n" ;
    cout 
<< typeid(TL::TypeAt<Result ,6>::Result).name() << "\n" ;
// ---- test NoDuplicates<>  --------------------   
    cout << " " << "\n" ;

// ---- test MostDerived<>  ---------------------  
    cout << " " << "\n" ;

// ---- test DerivedToFront<>  ------------------  
    cout << " " << "\n" ;

// ---- test EraseALL<> -----------------
    cout << " ---- test EraseALL<> -----" << "\n" ;
    cout 
<< Length<Result>::value << endl ;
    typedef EraseAll
<Result ,String>::Result Result ;
    cout 
<< Length<Result>::value << endl ;
    cout 
<< typeid(TL::TypeAt<Result ,0>::Result).name() << "\n" ;
    cout 
<< typeid(TL::TypeAt<Result ,1>::Result).name() << "\n" ;
    cout 
<< typeid(TL::TypeAt<Result ,2>::Result).name() << "\n" ;
    cout 
<< typeid(TL::TypeAt<Result ,3>::Result).name() << "\n" ;  
    typedef Replace
<Result ,SignedIntegrals ,NullType>::Result Result ;// no replace 
    cout << Length<Result>::value << endl ;    
    typedef EraseAll
<Result ,SignedIntegrals>::Result Result ; // no erase
    cout << Length<Result>::value << endl ;

/*  ***********************************************************/
    cout 
<< "\n\n\n\n       Hello ,World !" <<endl ;
    system(
"pause");
    
return 0;
}



//---------------------------------------------------------------------------

繼續好好學習Modern C++ Design -- C++ 設計新思維 。

posted on 2009-07-09 13:34 only 閱讀(489) 評論(0)  編輯 收藏 引用 所屬分類: 瑣碎編程


只有注冊用戶登錄后才能發表評論。
網站導航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <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>
            欧美精品久久久久久久| 欧美性大战久久久久| 伊人久久大香线| 久久久五月婷婷| 久久精品国产综合| 亚洲成色777777在线观看影院| 久久久777| 乱中年女人伦av一区二区| 亚洲国产美女精品久久久久∴| 老司机免费视频一区二区三区| 久久综合久久综合九色| 亚洲精品视频在线看| 亚洲精品一线二线三线无人区| 欧美日韩在线电影| 欧美一区二区精品| 久久婷婷色综合| 妖精成人www高清在线观看| 一区二区欧美在线| 国内精品视频在线观看| 亚洲国产va精品久久久不卡综合| 欧美成人一区二区在线| 亚洲一区二区三区欧美| 久久婷婷综合激情| 亚洲一区激情| 久色成人在线| 亚洲欧美日韩中文播放| 久久最新视频| 亚洲欧美激情在线视频| 老司机67194精品线观看| 中国成人黄色视屏| 久久久久高清| 亚洲与欧洲av电影| 久久只有精品| 欧美一区免费视频| 欧美激情一区二区三区在线视频| 欧美一区二区三区四区在线观看| 美腿丝袜亚洲色图| 香蕉久久夜色| 欧美日本一区二区高清播放视频| 久久gogo国模啪啪人体图| 欧美成人综合网站| 久久一区视频| 国产伦精品一区二区三区免费迷 | 黑人极品videos精品欧美裸| 91久久黄色| 亚洲第一在线综合网站| 亚洲视频香蕉人妖| 亚洲伦理一区| 快播亚洲色图| 久久久亚洲欧洲日产国码αv | 亚洲一区www| 日韩视频二区| 免费观看一级特黄欧美大片| 久久国产精品久久久久久| 欧美日韩一区二区三| 欧美成人四级电影| 黄色一区二区三区四区| 亚洲一区二区欧美| 亚洲男人的天堂在线aⅴ视频| 欧美大片18| 亚洲大胆女人| 久久亚洲视频| 国产美女精品免费电影| 亚洲少妇自拍| 午夜久久美女| 国产精品毛片va一区二区三区 | 欧美激情亚洲| 亚洲国产婷婷综合在线精品| 久久久欧美精品| 美日韩在线观看| 在线不卡免费欧美| 久久午夜视频| 亚洲国产综合在线| 一区二区三区欧美在线| 欧美日韩的一区二区| 日韩视频一区二区三区在线播放免费观看 | 国产精品久久久久影院亚瑟 | 99在线精品视频| 亚洲一级在线| 国产精品久久一区主播| 国产精品99久久久久久久久久久久| 一区二区三区高清| 国产精品黄色| 欧美一区=区| 欧美mv日韩mv国产网站| 亚洲激情校园春色| 欧美日韩精品不卡| 亚洲一区二区精品视频| 久久久水蜜桃av免费网站| 亚洲国产精品电影在线观看| 欧美jjzz| 9l国产精品久久久久麻豆| 欧美亚洲一级片| 亚洲成人自拍视频| 欧美日韩国产在线播放| 亚洲欧美日韩电影| 欧美高清在线观看| 亚洲尤物在线视频观看| 国产亚洲美州欧州综合国| 久久午夜国产精品| 一区二区三区国产精华| 久热这里只精品99re8久| 亚洲国产高清一区| 国产精品入口夜色视频大尺度| 久久国内精品视频| 亚洲精品麻豆| 麻豆国产精品777777在线| 99在线热播精品免费| 国产一区激情| 欧美日韩一区二区三区四区五区| 亚洲欧美日韩精品久久久久| 亚洲第一精品电影| 久久精品国产免费| 亚洲视频一区二区| 亚洲国产综合在线看不卡| 国产精品一卡二| 欧美高清在线播放| 久久久久久久久久看片| 一区二区欧美精品| 亚洲国产另类 国产精品国产免费| 亚洲欧美综合网| 亚洲视频日本| 99综合电影在线视频| 在线日本欧美| 国产一区二区三区精品久久久| 欧美欧美在线| 欧美成人激情在线| 久久久视频精品| 香蕉成人久久| 亚洲在线视频网站| 一区二区三区日韩欧美| 亚洲精选在线观看| 亚洲激情在线观看| 欧美高清在线一区二区| 久久阴道视频| 久久视频一区二区| 久久大香伊蕉在人线观看热2| 亚洲免费小视频| 亚洲午夜国产成人av电影男同| 亚洲精品免费一二三区| 亚洲国产日韩欧美在线99| 狠狠色综合网站久久久久久久| 国产欧美精品日韩| 国产亚洲精品自拍| 国内揄拍国内精品久久| 国产一区二区三区久久悠悠色av | 亚洲精品一二三区| 亚洲国产精品久久久久秋霞影院 | 久久综合色播五月| 久久视频在线免费观看| 久久看片网站| 久久综合亚州| 欧美激情精品| 亚洲精品国产精品乱码不99按摩| 最新亚洲激情| 一二三四社区欧美黄| 亚洲小视频在线观看| 亚洲欧美国产视频| 久久精品女人| 免费视频亚洲| 欧美日韩中文字幕| 国产精品网站在线| 国产一区二区三区直播精品电影| 黑人操亚洲美女惩罚| 亚洲国产精品va在线看黑人动漫 | 国产精品萝li| 国产一区二区三区在线观看网站 | 亚洲欧美视频在线观看| 欧美诱惑福利视频| 免费欧美在线视频| 亚洲黄色高清| 亚洲与欧洲av电影| 两个人的视频www国产精品| 欧美精品v日韩精品v国产精品| 欧美日韩在线观看一区二区| 国产精品免费小视频| 黄色一区二区在线| 夜夜爽www精品| 久久国产乱子精品免费女| 欧美成人嫩草网站| 在线视频日韩| 久久综合九色欧美综合狠狠| 欧美日韩三级| 极品日韩久久| 亚洲欧美国产va在线影院| 巨胸喷奶水www久久久免费动漫| 亚洲激情图片小说视频| 欧美在线观看日本一区| 欧美另类视频| 国产一区在线看| 亚洲一二三区在线观看| 老司机亚洲精品| 亚洲视频狠狠| 欧美日本亚洲| 亚洲高清不卡| 久久爱91午夜羞羞| 一个色综合av| 欧美日韩人人澡狠狠躁视频| 在线观看成人av电影| 久久av一区二区三区漫画|