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

Method ptr

tests/test_class.cpp:521–521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

519#if defined(PYBIND11_CPP17)
520 struct alignas(1024) Aligned {
521 std::uintptr_t ptr() const { return (uintptr_t) this; }
522 };
523 py::class_<Aligned>(m, "Aligned").def(py::init<>()).def("ptr", &Aligned::ptr);
524#endif

Callers 15

TEST_SUBMODULEFunction · 0.80
TEST_SUBMODULEFunction · 0.80
TEST_SUBMODULEFunction · 0.80
TEST_SUBMODULEFunction · 0.80
TEST_SUBMODULEFunction · 0.80
PYBIND11_OVERRIDE_PUREFunction · 0.80
TEST_SUBMODULEFunction · 0.80
ConstructorStatsClass · 0.80
get_valueMethod · 0.80
from_ncnstFunction · 0.80
from_constFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected