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

Function get

include/pybind11/detail/internals.h:116–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114 thread_specific_storage &operator=(thread_specific_storage &&) = delete;
115
116 T *get() const { return reinterpret_cast<T *>(PYBIND11_TLS_GET_VALUE(key_)); }
117
118 T &operator*() const { return *get(); }
119 explicit operator T *() const { return get(); }

Callers 15

ConstructorStatsClass · 0.85
TEST_SUBMODULEFunction · 0.85
castMethod · 0.85
castMethod · 0.85
loadMethod · 0.85
castMethod · 0.85
dtypeMethod · 0.85
from_argsMethod · 0.85
itemsizeMethod · 0.85
has_fieldsMethod · 0.85
alignmentMethod · 0.85

Calls

no outgoing calls

Tested by 1

TEST_SUBMODULEFunction · 0.68