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

Function copy_no_return

sources/covscript.cpp:179–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177 std::size_t struct_builder::mCount = 0;
178
179 void copy_no_return(var &val)
180 {
181 if (!val.is_rvalue()) {
182 val.clone();
183 val.detach();
184 }
185 else
186 val.mark_trivial();
187 }
188
189 var copy(var val)
190 {

Callers 4

pair>Method · 0.85
list>Method · 0.85
array>Method · 0.85
hash_map>Method · 0.85

Calls 4

is_rvalueMethod · 0.80
mark_trivialMethod · 0.80
cloneMethod · 0.45
detachMethod · 0.45

Tested by

no test coverage detected