3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-22 16:27:37 +00:00

replace some copies with moves

This commit is contained in:
Nuno Lopes 2026-02-09 22:45:13 +00:00 committed by Nikolaj Bjorner
parent 6b28d65487
commit a3e7bbb92f
8 changed files with 27 additions and 13 deletions

View file

@ -650,6 +650,17 @@ public:
svector(SZ s):vector<T, false, SZ>(s) {}
svector(SZ s, T const & elem):vector<T, false, SZ>(s, elem) {}
svector(SZ s, T const * data):vector<T, false, SZ>(s, data) {}
svector(const svector&) = default;
svector(svector&&) noexcept = default;
svector & operator=(const svector & source) {
vector<T, false, SZ>::operator=(source);
return *this;
}
svector & operator=(svector && source) noexcept {
vector<T, false, SZ>::operator=(std::move(source));
return *this;
}
};