MCPcopy Create free account
hub / github.com/OAID/Tengine / move

Method move

include/any.hpp:290–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288 }
289
290 static void move(storage_union& src, storage_union& dest) noexcept
291 {
292 // one of the conditions for using vtable_stack is a nothrow move constructor,
293 // so this move constructor will never throw a exception.
294 new(&dest.stack) T(std::move(reinterpret_cast<T&>(src.stack)));
295 destroy(src);
296 }
297
298 static void swap(storage_union& lhs, storage_union& rhs) noexcept
299 {

Callers 2

anyMethod · 0.45
swapMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected