MCPcopy Create free account
hub / github.com/Naios/function2 / take

Method take

include/function2/function2.hpp:341–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339struct address_taker {
340 template <typename O>
341 static auto take(O&& obj) {
342 return std::addressof(obj);
343 }
344 static T& restore(void* ptr) {
345 return *static_cast<T*>(ptr);
346 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected