template <class E>
class expected
Defined at line 416 of file ../../third_party/android/platform/system/libbase/include/android-base/expected.h
Public Methods
void expected<void, E> ()
Delegate simple operations to the underlying std::variant.
Defined at line 427 of file ../../third_party/android/platform/system/libbase/include/android-base/expected.h
void expected<void, E> (const expected<void, E> & rhs)
Defined at line 428 of file ../../third_party/android/platform/system/libbase/include/android-base/expected.h
void expected<void, E> (expected<void, E> && rhs)
Defined at line 430 of file ../../third_party/android/platform/system/libbase/include/android-base/expected.h
expected<void, E> & operator= (const expected<void, E> & rhs)
Defined at line 431 of file ../../third_party/android/platform/system/libbase/include/android-base/expected.h
expected<void, E> & operator= (expected<void, E> && rhs)
Defined at line 433 of file ../../third_party/android/platform/system/libbase/include/android-base/expected.h
template <, , >
void expected<void, E> (const expected<U, G> & rhs)
NOLINTNEXTLINE(google-explicit-constructor)
Defined at line 446 of file ../../third_party/android/platform/system/libbase/include/android-base/expected.h
template <, , >
void expected<void, E> (expected<U, G> && rhs)
NOLINTNEXTLINE(google-explicit-constructor)
Defined at line 448 of file ../../third_party/android/platform/system/libbase/include/android-base/expected.h
template <, >
void expected<void, E> (const unexpected<G> & e)
NOLINTNEXTLINE(google-explicit-constructor)
Defined at line 453 of file ../../third_party/android/platform/system/libbase/include/android-base/expected.h
template <, >
void expected<void, E> (unexpected<G> && e)
NOLINTNEXTLINE(google-explicit-constructor)
Defined at line 455 of file ../../third_party/android/platform/system/libbase/include/android-base/expected.h
void expected<void, E> (std::in_place_t )
in_place_t construction
Defined at line 458 of file ../../third_party/android/platform/system/libbase/include/android-base/expected.h
template <class... Args, >
void expected<void, E> (unexpect_t , Args &&... args)
unexpect_t construction
Defined at line 462 of file ../../third_party/android/platform/system/libbase/include/android-base/expected.h
template <class U, class... Args, >
void expected<void, E> (unexpect_t , std::initializer_list<U> il, Args &&... args)
unexpect_t with initializer_list construction
Defined at line 469 of file ../../third_party/android/platform/system/libbase/include/android-base/expected.h
template <, >
expected<void, E> & operator= (const unexpected<G> & e)
Defined at line 473 of file ../../third_party/android/platform/system/libbase/include/android-base/expected.h
template <, >
expected<void, E> & operator= (unexpected<G> && e)
Defined at line 474 of file ../../third_party/android/platform/system/libbase/include/android-base/expected.h
void emplace ()
modifiers
Defined at line 477 of file ../../third_party/android/platform/system/libbase/include/android-base/expected.h
template <class G = E, >
void swap (expected<void, E> & rhs)
Swap. This function takes a template argument so that _ENABLE_IF works.
Defined at line 482 of file ../../third_party/android/platform/system/libbase/include/android-base/expected.h
bool has_value ()
observers
Defined at line 488 of file ../../third_party/android/platform/system/libbase/include/android-base/expected.h
bool ok ()
Defined at line 489 of file ../../third_party/android/platform/system/libbase/include/android-base/expected.h
bool operator bool ()
Defined at line 490 of file ../../third_party/android/platform/system/libbase/include/android-base/expected.h
void value ()
Defined at line 492 of file ../../third_party/android/platform/system/libbase/include/android-base/expected.h
const E & error ()
Defined at line 494 of file ../../third_party/android/platform/system/libbase/include/android-base/expected.h
E & error ()
Defined at line 495 of file ../../third_party/android/platform/system/libbase/include/android-base/expected.h
const E && error ()
Defined at line 496 of file ../../third_party/android/platform/system/libbase/include/android-base/expected.h
E && error ()
Defined at line 497 of file ../../third_party/android/platform/system/libbase/include/android-base/expected.h
Friends
template <class E1class E2>
bool expected (const expected<void, E1> & xconst expected<void, E2> & y)