I assume this is what you are talking about:
myData_[myIndex_++] = &T(obj);
. T(obj) , & , . , , ;.
, , . , ? , - ?
, , -
myData_[myIndex_++] = new T(obj);
( delete .) ,
void IntSet<T>::insert(T& obj)
,
T const ** myData_;
. ( , , insert(3) .)
++. IntSet MakeUnion, makeIntersection makeSymmetricDifference std::vector<int> / std::set<int> std::set_union, std::set_intersection std::set_symmetric_difference.