template<class T>
class folly::gen::detail::UnwrapOr< T >
UnwrapOr - For unwrapping folly::Optional values, or providing the given fallback value. Usually used through the 'unwrapOr' helper like so:
auto best = from(scores) | max | unwrapOr(-1);
Note that the fallback value needn't match the value in the Optional it is unwrapping. If mis-matched types are supported, the common type of the two is returned by value. If the types match, a reference (T&& > T& > const T&) is returned.
Definition at line 2363 of file Base-inl.h.