Lines Matching refs:forward
186 constexpr expected(U&& v) : var_(std::in_place_index<0>, std::forward<U>(v)) {} in expected()
196 constexpr explicit expected(U&& v) : var_(std::in_place_index<0>, T(std::forward<U>(v))) {} in expected()
232 : var_(std::in_place_index<0>, std::forward<Args>(args)...) {} in expected()
238 : var_(std::in_place_index<0>, il, std::forward<Args>(args)...) {} in expected()
244 : var_(unexpected_type(std::forward<Args>(args)...)) {} in expected()
250 : var_(unexpected_type(il, std::forward<Args>(args)...)) {} in expected()
275 var_ = T(std::forward<U>(rhs));
299 expected(std::in_place, std::forward<Args>(args)...).swap(*this); in emplace()
307 expected(std::in_place, il, std::forward<Args>(args)...).swap(*this); in emplace()
353 else return static_cast<T>(std::forward<U>(v)); in value_or()
362 else return static_cast<T>(std::forward<U>(v)); in value_or()
504 : var_(unexpected_type(std::forward<Args>(args)...)) {} in expected()
510 : var_(unexpected_type(il, std::forward<Args>(args)...)) {} in expected()
612 constexpr unexpected(Err&& e) : val_(std::forward<Err>(e)) {} in unexpected()
618 : val_(il, std::forward<Args>(args)...) {} in unexpected()
693 val_ = std::forward<E>(rhs.value());