smartptr.h

来自「这是VCF框架的代码」· C头文件 代码 · 共 33 行

H
33
字号
#ifndef _VCF_SMARTPTR_H__#define _VCF_SMARTPTR_H__/*Copyright 2000-2004 The VCF Project.Please see License.txt in the top level directorywhere you installed the VCF.*/#if _MSC_VER > 1000#   pragma once#endif#include "thirdparty/common/boost/smart_ptr.hpp"namespace VCF  {    template<typename T>    struct SmartPtr {        typedef boost::shared_ptr<T> Shared;        typedef boost::scoped_ptr<T> Scoped;        typedef boost::weak_ptr<T>   Weak;    };    using boost::static_pointer_cast;    using boost::const_pointer_cast;    using boost::dynamic_pointer_cast;    using boost::get_pointer;    using boost::get_deleter;}#endif // _VCF_SMARTPTR_H__

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?