Lines Matching refs:opt
41 optional<int> opt; in test() local
42 static_assert(noexcept(opt = nullopt) == true, ""); in test()
43 opt = nullopt; in test()
44 assert(static_cast<bool>(opt) == false); in test()
47 optional<int> opt(3); in test() local
48 opt = nullopt; in test()
49 assert(static_cast<bool>(opt) == false); in test()
52 optional<StateTracker> opt; in test() local
53 opt = nullopt; in test()
55 assert(static_cast<bool>(opt) == false); in test()
58 optional<StateTracker> opt(state); in test() local
60 opt = nullopt; in test()
62 assert(static_cast<bool>(opt) == false); in test()
77 optional<TT> opt; in main() local
78 static_assert(noexcept(opt = nullopt) == true, ""); in main()
80 opt = nullopt; in main()
84 assert(static_cast<bool>(opt) == false); in main()
90 optional<TT> opt(42); in main() local
93 opt = nullopt; in main()
97 assert(static_cast<bool>(opt) == false); in main()