Returns the reference count of the stored exception.
Declared in <folly/lang/Exception.h>
std::size_t
exception_ptr_use_count(std::exception_ptr const& ptr) noexcept;
Returns 0 for an empty exception_ptr. Otherwise, returns the number of exception_ptr instances that refer to the same stored exception object.
Analogous to std::shared_ptr::use_count.
The number of exception_ptr instances sharing the stored exception.
| Name | Description |
|---|---|
| ptr | The exception_ptr whose stored exception is inspected. |