87 for (T* t=p; q<
e; t++, q++)
103 std::cout <<
"new data storage.\n";
106 ref_count_ =
new int;
113 ref_count_(
V.ref_count_)
115 if (
V.ref_count_ !=
NULL)
157 if (ref_count_ !=
NULL)
160 if ((*ref_count_) == 0)
165 ref_count_ =
V.ref_count_;
167 if (
V.ref_count_ !=
NULL)
176 if (ref_count_ !=
NULL)
179 std::cout <<
"destorying data... \n";
184 std::cout <<
"deleted ref_count_ ...\n";
189 std::cout <<
"deleted data_[] ...\n";
204 return (data_ ==
NULL ? 1 : 0);
219 return (ref_count_ !=
NULL ? *ref_count_ : -1) ;
225 if (ref_count_ !=
NULL)
229 if (*ref_count_ == 0)