value overloads

Synopses

Declared in <folly/Try.h>

Get a mutable reference to the contained value.

T&
value() &;

Get an rvalue reference to the contained value.

T&&
value() &&;

Get a const reference to the contained value.

T const&
value() const &;

Get a const rvalue reference to the contained value.

T const&&
value() const &&;

Return Value

  • A mutable reference to the contained value.

  • An rvalue reference to the contained value.

  • A const reference to the contained value.

  • A const rvalue reference to the contained value.

Created with MrDocs