proxygen
|
#include <Try.h>
Public Types | |
typedef void | element_type |
Public Member Functions | |
Try () noexcept | |
Try (exception_wrapper e) noexcept | |
Try & | operator= (const Try< void > &t) noexcept |
Try (const Try< void > &t) noexcept | |
~Try () | |
void | emplace () noexcept |
template<typename... Args> | |
exception_wrapper & | emplaceException (Args &&...args) noexcept(std::is_nothrow_constructible< exception_wrapper, Args &&... >::value) |
void | value () const |
void | operator* () const |
void | throwIfFailed () const |
bool | hasValue () const |
bool | hasException () const |
template<class Ex > | |
bool | hasException () const |
exception_wrapper & | exception ()& |
exception_wrapper && | exception ()&& |
const exception_wrapper & | exception () const & |
const exception_wrapper && | exception () const && |
std::exception * | tryGetExceptionObject () |
std::exception const * | tryGetExceptionObject () const |
template<class E > | |
E * | tryGetExceptionObject () |
template<class E > | |
E const * | tryGetExceptionObject () const |
template<class Ex , class F > | |
bool | withException (F func) |
template<class Ex , class F > | |
bool | withException (F func) const |
template<class F > | |
bool | withException (F func) |
template<class F > | |
bool | withException (F func) const |
template<bool , typename R > | |
R | get () |
Private Attributes | |
bool | hasValue_ |
union folly::Try< void >:: { ... } | |
typedef void folly::Try< void >::element_type |
|
inlinenoexcept |
|
inlineexplicitnoexcept |
|
inlinenoexcept |
|
inline |
Definition at line 411 of file Try.h.
|
inlinenoexcept |
Definition at line 423 of file Try.h.
References testing::Args(), folly::pushmi::__adl::noexcept(), and value.
Referenced by TEST(), and folly::tryEmplaceWith().
|
noexcept |
Definition at line 203 of file Try-inl.h.
References folly::Try< T >::e_, folly::Try< T >::hasException(), and folly::exception_wrapper::~exception_wrapper().
Referenced by TEST(), and folly::tryEmplaceWith().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 469 of file Try.h.
|
inline |
|
inline |
Definition at line 451 of file Try.h.
References folly::value().
|
inlinenoexcept |
Definition at line 185 of file Try-inl.h.
References testing::Args(), folly::pushmi::detail::t, and folly::exception_wrapper::~exception_wrapper().
|
inline |
Definition at line 213 of file Try-inl.h.
References folly::Try< T >::e_, folly::Try< T >::hasException(), folly::exception_wrapper::throw_exception(), type, and folly::Try< T >::value().
|
inline |
Definition at line 510 of file Try.h.
|
inline |
Definition at line 513 of file Try.h.
|
inline |
Definition at line 523 of file Try.h.
|
inline |
Definition at line 527 of file Try.h.
|
inline |
Definition at line 447 of file Try.h.
Referenced by folly::coro::detail::BlockingWaitPromise< void >::get().
|
inline |
Definition at line 539 of file Try.h.
References folly::gen::move.
|
inline |
Definition at line 546 of file Try.h.
References folly::gen::move.
|
inline |
Definition at line 562 of file Try.h.
References folly::gen::move.
|
inline |
Definition at line 569 of file Try.h.
References folly::gen::move.
union { ... } |
exception_wrapper folly::Try< void >::e_ |
|
private |