add cow_ptr

This commit is contained in:
邹晓航
2015-03-16 14:14:39 +08:00
parent 3418a59d59
commit 09731ceb4e

14
TinySTL/COWPtr.h Normal file
View File

@@ -0,0 +1,14 @@
#ifndef _COWPTR_H_
#define _COWPTR_H_
#include "Memory.h"
namespace TinySTL{
template<class T>
class cow_ptr{
private:
shared_ptr<T> ptr_;
};
}
#endif