MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / FromBoxed

Method FromBoxed

include/cpp/marshal/ValueReference.hpp:14–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12template<class T>
13template<class O>
14inline O* cpp::marshal::ValueReference<T>::FromBoxed(const Boxed<O>& inRHS)
15{
16 if (nullptr == inRHS.mPtr)
17 {
18 return nullptr;
19 }
20
21 return const_cast<O*>(&inRHS->value);
22}
23
24template<class T>
25inline cpp::marshal::ValueReference<T>::ValueReference() : Super(nullptr) {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected