Returns whether the stored exception is uniquely referenced.
Declared in <folly/lang/Exception.h>
bool
exception_ptr_unique(std::exception_ptr const& ptr) noexcept;
Returns false for an empty exception_ptr. Otherwise, returns true if this is the only exception_ptr instance referring to the stored exception object.
Analogous to std::shared_ptr::unique.
True if this is the only reference to the stored exception.
| Name | Description |
|---|---|
| ptr | The exception_ptr whose stored exception is inspected. |