![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Boost
文章平均质量分 78
动起手来实现白日梦
有兴即有趣!
展开
-
Boost库学习随记一 timer库示例:
#include #include #include #include #include #include #include "boost_test.h"using namespace std; using namespace boost;int main(){ //######timer 处理示例,timer 以处理几百小时之内,对精确度不高的时间统计。 timer t;原创 2014-03-27 10:07:47 · 882 阅读 · 0 评论 -
Boost库学习随记二 date_time、time_duration、date_facet、time_facet、timer库示例等:
//"Boost_data_Timer.h"头文件#ifndef BOOST_TEST #define BOOST_DATE_TIME_SOURCE#include #include #include #include #include //#include "boost/date_time/gregorian/conversion.hpp"#include "boost/d原创 2014-04-09 17:30:48 · 8401 阅读 · 0 评论 -
Boost库学习随记三 smart_ptr库、soped_ptr、scoped_array、shared_ptr、shared_array、weak_ptr等等
#include #include #include #include #include //#include using namespace std;using namespace boost;//smart_ptr库//soped_ptr智能指针示例:bool scoped_ptr_fun(){ { //soped_ptr简单示例一 scoped_ptr原创 2014-04-12 19:52:11 · 1490 阅读 · 0 评论 -
boost库学习随记六:使用同步定时器、异步定时器、bind、成员函数回调处理、多线程的同步处理示例等
一、使用同步定时器这个示例程序通过展示如何在一个定时器执行一个阻塞等待介绍ASIO。原创 2014-05-13 21:59:35 · 8533 阅读 · 0 评论 -
Boost库学习随记四 pool内存池使用示例:pool、object_pool、singleton_pool、pool_alloc内存池
#include #include #include #include #include #include using namespace std;using namespace boost;//pool内存池使用示例:poolvoid pool_pool_fun(){ pool<>pl(sizeof(int)); //一个可分配int的内存池 int *p = (i原创 2014-04-13 13:42:21 · 2700 阅读 · 0 评论 -
boost库学习随记五 Boost.Locale 之字符转换 gbk utf8 big5 string wstring等
std::string boost::locale::conv::between(char const * begin, char const * end, std::string const & to_encoding, std::string const & from_en原创 2014-04-28 18:43:00 · 20980 阅读 · 0 评论