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

Method get

tests/test_smart_ptr.cpp:80–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 const_only_shared_ptr() = default;
79 explicit const_only_shared_ptr(const T *ptr) : ptr_(ptr) {}
80 const T *get() const { return ptr_.get(); }
81
82private:
83 // for demonstration purpose only, this imitates smart pointer with a const-only pointer

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected