#include <ExceptionWrapper-inl.h>
|
template<class ThrowFn , class CatchFn , FOLLY_REQUIRES(!IsCatchAll< CatchFn >::value) > |
auto | operator() (ThrowFn &&th, CatchFn &ca) const |
|
template<class ThrowFn , class CatchFn , FOLLY_REQUIRES(IsCatchAll< CatchFn >::value) > |
auto | operator() (ThrowFn &&th, CatchFn &ca) const |
|
template<bool IsConst>
struct folly::exception_wrapper::HandleStdExceptReduce< IsConst >
Definition at line 541 of file ExceptionWrapper-inl.h.
template<bool IsConst>
template<class ThrowFn , class CatchFn , FOLLY_REQUIRES(!IsCatchAll< CatchFn >::value) >
Definition at line 548 of file ExceptionWrapper-inl.h.
References FOLLY_REQUIRES.
549 using Ex = _t<ExceptionTypeOf<CatchFn, IsConst>>;
551 [th = std::forward<ThrowFn>(th), &ca](
auto&& continuation) ->
StdEx* {
552 if (
auto e = const_cast<StdEx*>(th(continuation))) {
553 if (
auto e2 =
dynamic_cast<_t<std::add_pointer<Ex>
>>(e)) {
AddConstIf< IsConst, std::exception > StdEx
template<bool IsConst>
template<class ThrowFn , class CatchFn , FOLLY_REQUIRES(IsCatchAll< CatchFn >::value) >
Definition at line 567 of file ExceptionWrapper-inl.h.
568 return [th = std::forward<ThrowFn>(th), &ca](
auto &&) ->
StdEx* {
571 auto continuation = [&ca](
StdEx* e) {
572 return e !=
nullptr ? e : ((void)ca(),
nullptr);
574 if (th(continuation) !=
nullptr) {
AddConstIf< IsConst, std::exception > StdEx
The documentation for this struct was generated from the following file: