40 return *
static_cast<T*
>(getValue());
48 return static_cast<T*
>(getValue());
56 return static_cast<T*
>(getValue());
T & operator*() const
Overload of unary operator *.
Defines variables with thread-local storage.
Pointer to a thread-local variable.
void * getValue() const
Retrieve the thread-specific value of the variable.
T * operator->() const
Overload of operator ->
ThreadLocalPtr(T *value=NULL)
Default constructor.
ThreadLocalPtr< T > & operator=(T *value)
Assignment operator for a raw pointer parameter.