码迷,mamicode.com
首页 >  
搜索关键字:boost asio    ( 2011个结果
C++ 系列:Boost Thread 编程指南
转载自: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
boost::algorithm用法详解之字符串关系判断
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
用boost::lexical_cast进行数值转换
在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
asio socket设置 server地址与端口的两种方式
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
boost多边形交集、并集
交集: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
Boost 解析xml——插入Item
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 clang++ 3.6 编译boost 1.59/1.55
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 系列(一)
前言 本系列是基于React Native版本号0.44.3写的,最初学习React Native的时候,完全没有接触过React和JS,本文的目的是为了给那些JS和React小白提供一个快速入门,让你们能够在看React Native语法的时候不那么费劲,有过前端开发经验的可以直接忽略。 准备工作 ...
分类:其他好文   时间:2017-08-25 01:17:22    阅读次数:207
boost-容器
1、array array相当于是一个增加了STL容器接口的数组,但它不像vector等容器一样可以动态增长,如果需要动态变动array的容量可以使用boost::scoped_array。array适用与对运行速度要求很高的场合。C++11中已支持array。 eg: 2、unordered_ma ...
分类:其他好文   时间:2017-08-24 10:16:14    阅读次数:154
2011条   上一页 1 ... 54 55 56 57 58 ... 202 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!