Lines Matching refs:Opt
25 template <class Opt>
29 static_assert(std::is_nothrow_constructible<Opt, nullopt_t&>::value, "");
30 static_assert(std::is_trivially_destructible<Opt>::value, "");
31 static_assert(std::is_trivially_destructible<typename Opt::value_type>::value, "");
33 constexpr Opt opt(nullopt);
34 static_assert(static_cast<bool>(opt) == false, "");
37 : public Opt
43 template <class Opt>
47 static_assert(std::is_nothrow_constructible<Opt, nullopt_t&>::value, "");
48 static_assert(!std::is_trivially_destructible<Opt>::value, "");
49 static_assert(!std::is_trivially_destructible<typename Opt::value_type>::value, "");
51 Opt opt(nullopt);
52 assert(static_cast<bool>(opt) == false);
55 const Opt opt(nullopt);
56 assert(static_cast<bool>(opt) == false);
59 : public Opt