MCPcopy Create free account
hub / github.com/pybind/pybind11 / get_ptr

Function get_ptr

tests/test_class_sh_basic.cpp:118–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116// Helpers for testing.
117std::string get_mtxt(atyp const &obj) { return obj.mtxt; }
118std::ptrdiff_t get_ptr(atyp const &obj) { return reinterpret_cast<std::ptrdiff_t>(&obj); }
119
120std::unique_ptr<atyp> unique_ptr_roundtrip(std::unique_ptr<atyp> obj) { return obj; }
121

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected