diff --git a/inc/hgl/type/Smart.h b/inc/hgl/type/Smart.h index 249dcdf..e86b6eb 100644 --- a/inc/hgl/type/Smart.h +++ b/inc/hgl/type/Smart.h @@ -539,6 +539,15 @@ namespace hgl delete[] obj; } + void set(T *o,const size_t count) + { + if(obj) + delete[] obj; + + obj=o; + size=count; + } + T *alloc(const size_t count) { if(!obj)