码迷,mamicode.com
首页 >  
搜索关键字:boost lockfree    ( 1959个结果
简单编写makefile文件,实现GCC4.9编译项目,加入boost库测试等等。。
一、需要用到的几个测试文件...
分类:其他好文   时间:2014-05-12 15:34:53    阅读次数:319
vs2012中配置和使用boost库
vs2012中配置和使用boost库一、配置:1、到www.boost.org下载boost库源代码,完成之后解压,我放置的路径是f:\install。2、打开vs2012,点击“工具”—>“visual studio 命令提示”,弹出命令行3、切换到install\boost_1_55_0路径下,...
分类:其他好文   时间:2014-05-12 12:31:12    阅读次数:323
edb-linux下的od
偶尔看见,贴一下编译过程需要boost和qt4(必须是动态的,静态编译的话,他的so库全部会编译为静态库……)sudo apt-get install libboost-devqmakemake INSTALL_ROOT=/home/用户名/tools/edb install
分类:数据库   时间:2014-05-12 09:44:59    阅读次数:475
boost::function实践——来自《Beyond the C++ Standard Library ( An Introduction to Boost )》
代码段1: 1 #include 2 #include 3 4 5 float mul_ints(int x, int y) { return ((float)x) * y; } 6 struct int_div { 7 float operator()(int x, int y)...
分类:编程语言   时间:2014-05-09 23:38:56    阅读次数:487
Boost智能指针——weak_ptr
循环引用:引用计数是一种便利的内存管理机制,但它有一个很大的缺点,那就是不能管理循环引用的对象。一个简单的例子如下:#include#include#include#includeclassparent;classchildren;typedefboost::shared_ptr parent_pt...
分类:其他好文   时间:2014-05-09 13:01:22    阅读次数:326
boost字符串算法
boost::algorithm简介2007-12-08 16:59boost::algorithm提供了很多字符串算法,包括: 大小写转换; 去除无效字符; 谓词; 查找; 删除/替换; 切割; 连接; 我们用写例子的方式来了解boost::algorithm能够为我们做些什么。boost::al...
分类:其他好文   时间:2014-05-08 14:30:18    阅读次数:397
boost::bind实践2——来自《Beyond the C++ Standard Library ( An Introduction to Boost )》
直接代码:代码段1: 1 #include 2 #include 3 #include 4 5 class some_class 6 { 7 public: 8 typedef void result_type; 9 void print_string(const ...
分类:编程语言   时间:2014-05-08 09:49:53    阅读次数:368
ACE_Message_Queue介绍(生产者/消费者)
下面的两个线程共享一个消息队列,一个用来放整数到队列,一个从队列里取消息出来。此程序在控制台不停的输出递增数字,主要是内存不会泄露 用到了多线程、ACE_Message_Queue、ACE_Message_Block、ACE_Thread_Manager::instance()->spawn等 #include using namespace std; #include "boost/lex...
分类:其他好文   时间:2014-05-07 21:29:38    阅读次数:476
boost::bind实践
第一部分源码为基础实践: 1 /*Beyond the C++ Standard Library ( An Introduction to Boost )[CN].chm*/ 2 /*bind的用法*/ 3 4 #include 5 #include 6 #include 7 #includ...
分类:其他好文   时间:2014-05-07 21:27:36    阅读次数:536
meta program (1) swap_iter
开始学习模板元编程了 #include #include #include #include #include "boost/assign/list_of.hpp" #include "boost/type_traits/is_const.hpp" #include "boost/type_traits/is_reference.hpp" #include "boost/type_tr...
分类:其他好文   时间:2014-05-07 16:32:27    阅读次数:358
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!