exception_ptr_try_get_object_exact_fast
Synopsis
Declared in <folly/lang/Exception.h>
template<
typename T,
typename... S>
T*
exception_ptr_try_get_object_exact_fast(
std::exception_ptr const& ptr,
tag_t<S...> tag) noexcept;
Description
Returns the address of the stored exception as if it were upcast to the given type, if its concrete type is exactly equal to one of the types passed in the tag.
May hypothetically fail in cases where multipe type‐info objects exist for any of the given types. Positives are true but negatives may be either true or false.
Return Value
A pointer to the stored exception as T, or null if no exact match.
Parameters
Name |
Description |
ptr |
The exception_ptr whose stored exception is inspected. |
tag |
The tag listing the candidate concrete types to match exactly. |
Created with MrDocs