Home | History | Annotate | Download | only in optional.object.observe

Lines Matching refs:opt

46         const std::optional<X> opt; ((void)opt);
47 ASSERT_SAME_TYPE(decltype(opt.operator->()), X const*);
48 // ASSERT_NOT_NOEXCEPT(opt.operator->());
58 constexpr optional<X> opt(X{});
59 static_assert(opt->test() == 3, "");
62 constexpr optional<Y> opt(Y{});
63 assert(opt->test() == 2);
66 constexpr optional<Z> opt(Z{});
67 static_assert(opt->test() == 1, "");
71 const optional<X> opt;
72 assert(opt->test() == 3);