MCPcopy Create free account
hub / github.com/covscript/covscript / move_store

Function move_store

include/covscript/core/variable.hpp:674–682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

672 }
673
674 inline void move_store(basic_var &other)
675 {
676 destroy_store();
677 if (other.m_dispatcher != nullptr) {
678 other.m_dispatcher(operators::type::move, &other, this);
679 m_dispatcher = other.m_dispatcher;
680 other.m_dispatcher = nullptr;
681 }
682 }
683
684 basic_var() noexcept = default;
685

Callers 2

swapFunction · 0.85
basic_varFunction · 0.85

Calls 1

destroy_storeFunction · 0.85

Tested by

no test coverage detected