add cow_ptr
This commit is contained in:
1 parent
3418a59d59
commit
09731ceb4e
1 file changed
+14
@@ -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