boost
文章平均质量分 71
MarsZhangLing
天行健,君子以自强不息。地势坤,君子以厚德载物
展开
-
boost日志使用说明
#include #include #include #include #include #include #include #include #include #include #include bool g_nInitLog = false; namespace logging = boost::log; namespace sinks = bo原创 2016-02-02 16:15:27 · 1850 阅读 · 2 评论 -
boost 线程池的使用
作为一个懒鬼,肯定是使用最简单的方式来使用线程池。VS的MFC类库中有个CThreadPool的类给我们提供了一个线程池,可惜不跨平台。于是就另外找了个 http://threadpool.sourceforge.net/ #include #include void first_task() { ... } void second_task() { .. }原创 2016-02-02 16:41:53 · 914 阅读 · 0 评论 -
boost 常用替换和转换
#include boost::replace_all(m_strFont, ":", "\\:"); 大小写转换涉及到四个函数:to_upper()、to_upper()以及xxx_copy的版本。基本用法如下: cout string("hello world")) << endl; Trimming Trimming函数主要有trim()、trim_left原创 2016-02-02 16:16:54 · 3171 阅读 · 0 评论