3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-06-11 11:25:36 +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

@ -31,6 +31,11 @@ class expr_offset {
public:
expr_offset() = default;
expr_offset(expr * e, unsigned o):m_expr(e), m_offset(o) {}
expr_offset(const expr_offset&) = default;
expr_offset(expr_offset&&) noexcept = default;
expr_offset& operator=(expr_offset const & other) = default;
expr_offset& operator=(expr_offset&&) noexcept = default;
expr * get_expr() const { return m_expr; }
unsigned get_offset() const { return m_offset; }