3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-17 14:21:45 +00:00

replace some copies with moves

This commit is contained in:
Nuno Lopes 2026-02-09 22:45:13 +00:00
parent 73844f9a7f
commit 617c621cc0
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;
}
};