Vector(const Vector &orig) : isize(orig.isize) { this->isize = orig.isize; data_m.resize(orig.data_m.size()); #if defined(ATL_CONCURRENCY_ENABLED) for (int i = 0; i < data_m.size(); i++) { data_m[i] = orig.data_m[i]; } #else data_m.insert(data_m.begin(), orig.data_m.begin(), orig.data_m.end()); #endif }
Vector& operator=(const Vector &other) { this->isize = other.isize; data_m.resize(other.data_m.size()); #if defined(ATL_CONCURRENCY_ENABLED) for (int i = 0; i < data_m.size(); i++) { data_m[i] = other.data_m[i]; } #else data_m.insert(data_m.begin(), other.data_m.begin(), other.data_m.end()); #endif return *this; }