MCPcopy Create free account
hub / github.com/bloomberg/quantum / reinterpret_pointer_cast

Function reinterpret_pointer_cast

quantum/impl/quantum_stl_impl.h:70–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68#if (__cplusplus < 201703L)
69 template<class TO, class FROM>
70 std::shared_ptr<TO> reinterpret_pointer_cast(const std::shared_ptr<FROM>& from) noexcept
71 {
72 auto to = reinterpret_cast<typename std::shared_ptr<TO>::element_type*>(from.get());
73 return std::shared_ptr<TO>(from, to);
74 }
75#endif
76} //std
77

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected