add cow_ptr
This commit is contained in:
14
TinySTL/COWPtr.h
Normal file
14
TinySTL/COWPtr.h
Normal 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
|
||||
Reference in New Issue
Block a user