template <typename T> void CoinDenseVector<T>::append(const CoinDenseVector<T> & caboose) { const int s = nElements_; const int cs = caboose.getNumElements(); int newsize = s + cs; resize(newsize); const T * celem = caboose.getElements(); CoinDisjointCopyN(celem, cs, elements_ + s); }
CoinDenseVector<T>::CoinDenseVector(const CoinDenseVector<T> & rhs): nElements_(0), elements_(NULL) { setVector(rhs.getNumElements(), rhs.getElements()); }