MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / swap

Method swap

common/expr.h:821–831  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

819 ABSL_MUST_USE_RESULT std::unique_ptr<Expr> release_result();
820
821 friend void swap(ComprehensionExpr& lhs, ComprehensionExpr& rhs) noexcept {
822 using std::swap;
823 swap(lhs.iter_var_, rhs.iter_var_);
824 swap(lhs.iter_var2_, rhs.iter_var2_);
825 swap(lhs.iter_range_, rhs.iter_range_);
826 swap(lhs.accu_var_, rhs.accu_var_);
827 swap(lhs.accu_init_, rhs.accu_init_);
828 swap(lhs.loop_condition_, rhs.loop_condition_);
829 swap(lhs.loop_step_, rhs.loop_step_);
830 swap(lhs.result_, rhs.result_);
831 }
832
833 private:
834 friend class Expr;

Callers

nothing calls this directly

Calls 1

swapFunction · 0.70

Tested by

no test coverage detected