|
template<class Error , class T > |
static constexpr Expected< T, Error > | return_ (T t) |
|
template<class Error , class T , class U , bool FB_CONCATENATE = false, typename std::enable_if< (FB_CONCATENATE(FB_CONCATENATE(Folly, Requires), __LINE__)||static_cast< bool >(expected_detail::IsConvertible< U &&, Error >::value)), int >::type = 0> |
static constexpr Expected< T, Error > | return_ (Expected< T, U > t) |
|
template<class This > |
static std::decay< This >::type | then_ (This &&ex) |
|
template<class This , class Fn , class... Fns, class E = ExpectedErrorType<This>, class T = ExpectedHelper> |
static FOLLY_PUSH_WARNING auto | then_ (This &&ex, Fn &&fn, Fns &&...fns) -> decltype(T::then_(T::template return_< E >((std::declval< Fn >()(std::declval< This >().value()), unit)), std::declval< Fns >()...)) |
|
template<class This , class Yes , class No , class Ret = decltype(std::declval<Yes>()(std::declval<This>().value())), class Err = decltype(std::declval<No>()(std::declval<This>().error())), bool FB_CONCATENATE = false, typename std::enable_if< (FB_CONCATENATE(FB_CONCATENATE(Folly, Requires), __LINE__)||static_cast< bool >(!std::is_void< Err >::value)), int >::type = 0> |
static Ret | thenOrThrow_ (This &&ex, Yes &&yes, No &&no) |
|
template<class This , class Yes , class No , class Ret = decltype(std::declval<Yes>()(std::declval<This>().value())), class Err = decltype(std::declval<No>()(std::declval<This&>().error())), bool FB_CONCATENATE = false, typename std::enable_if< (FB_CONCATENATE(FB_CONCATENATE(Folly, Requires), __LINE__)||static_cast< bool >(std::is_void< Err >::value)), int >::type = 0> |
static Ret | thenOrThrow_ (This &&ex, Yes &&yes, No &&no) |
|
Definition at line 572 of file Expected.h.
template<class Error , class T , class U , bool FB_CONCATENATE = false, typename std::enable_if< (FB_CONCATENATE(FB_CONCATENATE(Folly, Requires), __LINE__)||static_cast< bool >(expected_detail::IsConvertible< U &&, Error >::value)), int >::type = 0>
static constexpr Expected<T, Error> folly::expected_detail::expected_detail_ExpectedHelper::ExpectedHelper::return_ |
( |
Expected< T, U > |
t | ) |
|
|
inlinestatic |
template<class This , class Fn , class... Fns, class E = ExpectedErrorType<This>, class T = ExpectedHelper>
static FOLLY_PUSH_WARNING auto folly::expected_detail::expected_detail_ExpectedHelper::ExpectedHelper::then_ |
( |
This && |
ex, |
|
|
Fn && |
fn, |
|
|
Fns &&... |
fns |
|
) |
| -> decltype(T::then_(
T::template return_<E>(
(std::declval<Fn>()(std::declval<This>().value()), unit)),
std::declval<Fns>()...)) |
|
inlinestatic |
Definition at line 600 of file Expected.h.
References folly::pushmi::operators::error(), folly::expected_detail::eValue, FOLLY_REQUIRES_TRAILING, LIKELY, folly::makeUnexpected(), fizz::server::detail::No, folly::unit, value, folly::value(), and fizz::server::detail::Yes.
606 T::template return_<E>(
609 (static_cast<Fn&&>(fn)(static_cast<This&&>(ex).
value()),
unit)),
610 static_cast<Fns&&>(fns)...);
requires And< SemiMovable< VN >... > &&SemiMovable< E > auto error(E e)
constexpr Unexpected< typename std::decay< Error >::type > makeUnexpected(Error &&)
uint64_t value(const typename LockFreeRingBuffer< T, Atom >::Cursor &rbcursor)
template<class This , class Yes , class No , class Ret = decltype(std::declval<Yes>()(std::declval<This>().value())), class Err = decltype(std::declval<No>()(std::declval<This>().error())), bool FB_CONCATENATE = false, typename std::enable_if< (FB_CONCATENATE(FB_CONCATENATE(Folly, Requires), __LINE__)||static_cast< bool >(!std::is_void< Err >::value)), int >::type = 0>
static Ret folly::expected_detail::expected_detail_ExpectedHelper::ExpectedHelper::thenOrThrow_ |
( |
This && |
ex, |
|
|
Yes && |
yes, |
|
|
No && |
no |
|
) |
| |
|
inlinestatic |
template<class This , class Yes , class No , class Ret = decltype(std::declval<Yes>()(std::declval<This>().value())), class Err = decltype(std::declval<No>()(std::declval<This&>().error())), bool FB_CONCATENATE = false, typename std::enable_if< (FB_CONCATENATE(FB_CONCATENATE(Folly, Requires), __LINE__)||static_cast< bool >(std::is_void< Err >::value)), int >::type = 0>
static Ret folly::expected_detail::expected_detail_ExpectedHelper::ExpectedHelper::thenOrThrow_ |
( |
This && |
ex, |
|
|
Yes && |
yes, |
|
|
No && |
no |
|
) |
| |
|
inlinestatic |