Lines Matching refs:rhs
14 // explicit optional(const optional<U>& rhs);
26 test(const optional<U>& rhs, bool is_going_to_throw = false)
29 bool rhs_engaged = static_cast<bool>(rhs);
33 optional<T> lhs(rhs);
37 assert(*lhs == T(*rhs));
45 optional<T> lhs(rhs);
48 assert(*lhs == T(*rhs));
88 optional<U> rhs;
89 test<T>(rhs);
94 optional<U> rhs(3);
95 test<T>(rhs);
100 optional<U> rhs;
101 test<T>(rhs);
106 optional<U> rhs(3);
107 test<T>(rhs);
112 optional<U> rhs;
113 test<T>(rhs);
118 optional<U> rhs(3);
119 test<T>(rhs, true);