Whether exception‐ptr object inspection is supported on this platform.

Synopsis

Declared in <folly/lang/Exception.h>

bool
exception_ptr_access() noexcept;

Description

Whether exception_ptr_get_type and template exception_ptr_get_object always return the type or object or only do so when the stored object is of some concrete type inheriting std::exception, and whether the non non‐template overloads of exception_ptr_get_object works at all.

Non‐authoritative. For some known platforms, inspection of exception‐ptr objects fails. This is likely to do with mismatch between the application ABI and the system‐provided libstdc++/libc++/cxxabi ABI. May falsely return true on other platforms.

Return Value

True if exception‐ptr object inspection is supported.

Created with MrDocs