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

Function set

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

Source from the content-addressed store, hash-verified

120 explicit operator bool() const { return get() != nullptr; }
121
122 void set(T *val) { PYBIND11_TLS_REPLACE_VALUE(key_, reinterpret_cast<void *>(val)); }
123 void reset(T *p = nullptr) { set(p); }
124 thread_specific_storage &operator=(T *pval) {
125 set(pval);

Callers 2

resetFunction · 0.70
internals.hFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected