MCPcopy Create free account
hub / github.com/Tracktion/choc / getPointer

Method getPointer

choc/memory/choc_ObjectPointer.h:109–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107 operator size_t() const = delete;
108
109 template <typename OtherType> static auto getPointer (ObjectPointer<OtherType> o) noexcept { return o.pointer; }
110 template <typename OtherType> static auto getPointer (const OtherType* o) noexcept { return o; }
111 template <typename OtherType> static auto getPointer (const OtherType& o) noexcept { return std::addressof (o); }
112};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected