转载自:http://www.cppblog.com/shaker/archive/2011/11/30/33583.html 作者: dozbC++ Boost Thread 编程指南0 前言1 创建线程2 互斥体3 条件变量4 线程局部存储5 仅运行一次的例程6 Boost线程库的未来7 参考资 ...
分类:
编程语言 时间:
2017-09-04 21:23:24
阅读次数:
152
http://blog.csdn.net/qingzai_/article/details/44417937 下面先列举几个常用的: #define i_end_with boost::iends_with#define i_start_with boost::istarts_with#define ...
分类:
其他好文 时间:
2017-09-01 12:54:26
阅读次数:
468
在STL库中,我们可以通过stringstream来实现字符串和数字间的转换: int i = 0; stringstream ss; ss << "123"; ss >> i; 但stringstream是没有错误检查的功能,例如对如如下代码,会将i给赋值为12. ss << "12.3"; ss ...
分类:
其他好文 时间:
2017-08-31 09:47:15
阅读次数:
201
1. 用解释器的方法, 常用来解析域名, 如 // query("www.163.com","80"), 也可以 query("www.163.com","telnet") // echo 7/tcp// ftp 21/tcp # File Transfer Protocol (Control)// ...
分类:
其他好文 时间:
2017-08-29 18:05:52
阅读次数:
218
交集:http://www.boost.org/doc/libs/1_56_0/libs/geometry/doc/html/geometry/reference/algorithms/intersection.html 并集:http://www.boost.org/doc/libs/1_56_0 ...
分类:
其他好文 时间:
2017-08-28 00:53:00
阅读次数:
270
XML格式为 需求:将另一段同样格式xml的Item插入到现在这个Item下面 这样 代码: ...
分类:
其他好文 时间:
2017-08-27 16:11:04
阅读次数:
216
代码#include<string>#include<boost/thread/thread.hpp>#include<boost/bind.hpp>#include<boost/function/function0.hpp>classCThreadClass{public:CThreadClass(){m_stop=true;}voidStartThread(){boost::function0<void>f=boost::bind(&..
分类:
编程语言 时间:
2017-08-26 18:24:44
阅读次数:
188
Ubuntu 15.04已经可以直接通过apt-get insall 安装clang 3.6, 并且预装的gcc版本是4.9.2。这些安装过程在这里介绍。 首先下载boost源码 [plain] view plain copy print? wget -O boost.1.59.tar.bz2 ht ...
分类:
系统相关 时间:
2017-08-26 10:18:27
阅读次数:
270
前言 本系列是基于React Native版本号0.44.3写的,最初学习React Native的时候,完全没有接触过React和JS,本文的目的是为了给那些JS和React小白提供一个快速入门,让你们能够在看React Native语法的时候不那么费劲,有过前端开发经验的可以直接忽略。 准备工作 ...
分类:
其他好文 时间:
2017-08-25 01:17:22
阅读次数:
207
1、array array相当于是一个增加了STL容器接口的数组,但它不像vector等容器一样可以动态增长,如果需要动态变动array的容量可以使用boost::scoped_array。array适用与对运行速度要求很高的场合。C++11中已支持array。 eg: 2、unordered_ma ...
分类:
其他好文 时间:
2017-08-24 10:16:14
阅读次数:
154