| 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); |
no outgoing calls
no test coverage detected