folly::ThreadLocalPtr::operator bool

Tests whether the calling thread's value is set.

Synopsis

Declared in <folly/ThreadLocal.h>

explicit
operator bool() const;

Return Value

true if the calling thread's pointer is non-null.