码迷,mamicode.com
首页 >  
搜索关键字:5 c++ boost 智能指针    ( 2698个结果
boost.multi_array学习-子视图用法(3)
//made by davidsu33 //2014-9-14 11:51 #include "stdafx.h" #include #include #include #include #include #include #include #include #include #include #include #include #include using...
分类:其他好文   时间:2014-09-14 18:06:47    阅读次数:280
boost.multi_array 的基本用法(2)
//made by davidsu33 //2014-9-14 11:51 #include "stdafx.h" #include #include #include #include #include #include #include #include #include #include #include #include #include using ...
分类:其他好文   时间:2014-09-14 12:53:57    阅读次数:263
指针辨析:悬垂指针、哑指针、野指针、智能指针
悬垂指针:1:提出的原因:请看下面的代码片段:[cpp]view plaincopyprint?int*p=NULL;voidmain(){inti=10;p=&i;cout#include#include#includeusingnamespacestd;intmain(void){char*p=...
分类:其他好文   时间:2014-09-13 10:31:05    阅读次数:229
序列化 opencv :: Mat
//cvmat_serialization.h #include #include using namespace cv; BOOST_SERIALIZATION_SPLIT_FREE(::cv::Mat) namespace boost { namespace serialization { /** Serialization support for cv::Mat */ ...
分类:其他好文   时间:2014-09-12 20:46:44    阅读次数:359
Effective C++ 笔记
自己习惯C++1、C++为一个语言联邦STL,Template,智能指针,C++112、尽量以const,enum,inline替换#define1)预处理在符号表中不存在,出现bug不好定位;目标码中也不会有多份Piaeg:#define Pia 3.14 (instead of--->) con...
分类:编程语言   时间:2014-09-12 14:58:13    阅读次数:161
boost静态断言的简单实现
boost的静态断言可以实现在编译器就检测错误的类型或语法...
分类:其他好文   时间:2014-09-11 12:35:31    阅读次数:142
谈谈Boost网络编程(1)——旧系统的问题
Boost 网络 Boost Asio...
分类:其他好文   时间:2014-09-11 12:35:21    阅读次数:167
boost配置
参考资料:Boost 1.47.0编译http://blog.csdn.net/woods2001/article/details/6913921打开运行 --- 键入 cmd --- 定位到D盘 直接 d: 回车即可。假如想定位到d盘下的某个文件夹 ,直接 cd boost\boost_file ...
分类:其他好文   时间:2014-09-11 11:05:12    阅读次数:174
《C++primer》v5 第12章 动态内存 读书笔记 习题答案
这一章暂时没写完,先留着以后再写。在C++程序中,程序员可以给手动开辟内存,但是这块内存需要手动释放,不便管理,因此新标准提供智能指针类型来管理动态对象。它负责自动释放所指向的对象。shared_prt允许多个指针指向同一个对象unique_ptr独占所指向的对象weak_ptr是一个弱引用,指向s...
分类:编程语言   时间:2014-09-09 21:28:39    阅读次数:413
C++ 智能指针详解 二
智能指针(smart pointer)是存储指向动态分配(堆)对象指针的类,用于生存期控制,能够确保自动正确的销毁动态分配的对象,防止内存泄露。它的一种通用实现技术是使用引用计数(reference count)。智能指针类将一个计数器与类指向的对象相关联,引用计数跟踪该类有多少个对象共享同一指针。...
分类:编程语言   时间:2014-09-06 10:53:53    阅读次数:374
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!