Lines Matching refs:opt2
210 optional<short> opt2; in test() local
211 opt = std::move(opt2); in test()
212 assert(static_cast<bool>(opt2) == false); in test()
213 assert(static_cast<bool>(opt) == static_cast<bool>(opt2)); in test()
217 optional<short> opt2(short{2}); in test()
218 opt = std::move(opt2); in test()
219 assert(static_cast<bool>(opt2) == true); in test()
220 assert(*opt2 == 2); in test()
221 assert(static_cast<bool>(opt) == static_cast<bool>(opt2)); in test()
222 assert(*opt == *opt2); in test()
226 optional<short> opt2; in test() local
227 opt = std::move(opt2); in test()
228 assert(static_cast<bool>(opt2) == false); in test()
229 assert(static_cast<bool>(opt) == static_cast<bool>(opt2)); in test()
233 optional<short> opt2(short{2}); in test()
234 opt = std::move(opt2); in test()
235 assert(static_cast<bool>(opt2) == true); in test()
236 assert(*opt2 == 2); in test()
237 assert(static_cast<bool>(opt) == static_cast<bool>(opt2)); in test()
238 assert(*opt == *opt2); in test()
277 auto opt2 = std::optional<StateTracker>(state[1]); in test() local
280 opt1 = std::move(opt2); in test()
289 auto opt2 = std::optional<StateTracker>(state[1]); in test() local
292 opt1 = opt2; in test()
321 optional<int> opt2(42); in main() local
322 assert(static_cast<bool>(opt2) == true); in main()
326 opt = std::move(opt2); in main()