BOOST源碼筆記(1) - boost::call_once

boost::call_once應用及其實現ios   如下是一個典型的運用call_once實現一次初始化的例子: 函數  1  #include  < boost / thread / thread.hpp >  2  #include  < boost / thread / once.hpp >  3  #include  < iostream >  4   5  int  i  =   0
相關文章
相關標籤/搜索