21 mem::decrement(
"cmem");
27 if(a_num<=0)
return 0;
28 T* p = (T*)::malloc(a_num*
sizeof(T));
31 mem::increment(
"cmem");
38 if(a_num<=0)
return 0;
39 T* p = (T*)::malloc(a_num*
sizeof(T));
42 mem::increment(
"cmem");
45 for(
size_t i=0;i<a_num;i++) p[i] = a_from[i];