From 09731ceb4ee3d5567e52b25841a63bd260768d05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E8=88=AA?= <1210603696@qq.com> Date: Mon, 16 Mar 2015 14:14:39 +0800 Subject: [PATCH] add cow_ptr --- TinySTL/COWPtr.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 TinySTL/COWPtr.h diff --git a/TinySTL/COWPtr.h b/TinySTL/COWPtr.h new file mode 100644 index 0000000..e94fbbc --- /dev/null +++ b/TinySTL/COWPtr.h @@ -0,0 +1,14 @@ +#ifndef _COWPTR_H_ +#define _COWPTR_H_ + +#include "Memory.h" + +namespace TinySTL{ + template + class cow_ptr{ + private: + shared_ptr ptr_; + }; +} + +#endif \ No newline at end of file -- GitLab