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

Function get_mtxt

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

Helpers for testing.

Source from the content-addressed store, hash-verified

115
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; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected