• Home
  • Raw
  • Download

Lines Matching refs:opt2

118         optional<int> opt2;  in main()  local
119 static_assert(noexcept(swap(opt1, opt2)) == true, ""); in main()
121 assert(static_cast<bool>(opt2) == false); in main()
122 swap(opt1, opt2); in main()
124 assert(static_cast<bool>(opt2) == false); in main()
128 optional<int> opt2; in main() local
129 static_assert(noexcept(swap(opt1, opt2)) == true, ""); in main()
132 assert(static_cast<bool>(opt2) == false); in main()
133 swap(opt1, opt2); in main()
135 assert(static_cast<bool>(opt2) == true); in main()
136 assert(*opt2 == 1); in main()
140 optional<int> opt2(2); in main() local
141 static_assert(noexcept(swap(opt1, opt2)) == true, ""); in main()
143 assert(static_cast<bool>(opt2) == true); in main()
144 assert(*opt2 == 2); in main()
145 swap(opt1, opt2); in main()
148 assert(static_cast<bool>(opt2) == false); in main()
152 optional<int> opt2(2); in main() local
153 static_assert(noexcept(swap(opt1, opt2)) == true, ""); in main()
156 assert(static_cast<bool>(opt2) == true); in main()
157 assert(*opt2 == 2); in main()
158 swap(opt1, opt2); in main()
161 assert(static_cast<bool>(opt2) == true); in main()
162 assert(*opt2 == 1); in main()
166 optional<X> opt2; in main() local
167 static_assert(noexcept(swap(opt1, opt2)) == true, ""); in main()
169 assert(static_cast<bool>(opt2) == false); in main()
170 swap(opt1, opt2); in main()
172 assert(static_cast<bool>(opt2) == false); in main()
177 optional<X> opt2; in main() local
178 static_assert(noexcept(swap(opt1, opt2)) == true, ""); in main()
181 assert(static_cast<bool>(opt2) == false); in main()
183 swap(opt1, opt2); in main()
186 assert(static_cast<bool>(opt2) == true); in main()
187 assert(*opt2 == 1); in main()
191 optional<X> opt2(2); in main() local
192 static_assert(noexcept(swap(opt1, opt2)) == true, ""); in main()
194 assert(static_cast<bool>(opt2) == true); in main()
195 assert(*opt2 == 2); in main()
197 swap(opt1, opt2); in main()
201 assert(static_cast<bool>(opt2) == false); in main()
205 optional<X> opt2(2); in main() local
206 static_assert(noexcept(swap(opt1, opt2)) == true, ""); in main()
209 assert(static_cast<bool>(opt2) == true); in main()
210 assert(*opt2 == 2); in main()
212 swap(opt1, opt2); in main()
216 assert(static_cast<bool>(opt2) == true); in main()
217 assert(*opt2 == 1); in main()
221 optional<Y> opt2; in main() local
222 static_assert(noexcept(swap(opt1, opt2)) == false, ""); in main()
224 assert(static_cast<bool>(opt2) == false); in main()
225 swap(opt1, opt2); in main()
227 assert(static_cast<bool>(opt2) == false); in main()
232 optional<Y> opt2; in main() local
233 static_assert(noexcept(swap(opt1, opt2)) == false, ""); in main()
236 assert(static_cast<bool>(opt2) == false); in main()
238 swap(opt1, opt2); in main()
241 assert(static_cast<bool>(opt2) == true); in main()
242 assert(*opt2 == 1); in main()
246 optional<Y> opt2(2); in main() local
247 static_assert(noexcept(swap(opt1, opt2)) == false, ""); in main()
249 assert(static_cast<bool>(opt2) == true); in main()
250 assert(*opt2 == 2); in main()
252 swap(opt1, opt2); in main()
256 assert(static_cast<bool>(opt2) == false); in main()
260 optional<Y> opt2(2); in main() local
261 static_assert(noexcept(swap(opt1, opt2)) == false, ""); in main()
264 assert(static_cast<bool>(opt2) == true); in main()
265 assert(*opt2 == 2); in main()
267 swap(opt1, opt2); in main()
271 assert(static_cast<bool>(opt2) == true); in main()
272 assert(*opt2 == 1); in main()
276 optional<Z> opt2; in main() local
277 static_assert(noexcept(swap(opt1, opt2)) == false, ""); in main()
279 assert(static_cast<bool>(opt2) == false); in main()
280 swap(opt1, opt2); in main()
282 assert(static_cast<bool>(opt2) == false); in main()
288 optional<Z> opt2; in main() local
289 static_assert(noexcept(swap(opt1, opt2)) == false, ""); in main()
292 assert(static_cast<bool>(opt2) == false); in main()
295 swap(opt1, opt2); in main()
304 assert(static_cast<bool>(opt2) == false); in main()
308 optional<Z> opt2; in main() local
309 opt2.emplace(2); in main()
310 static_assert(noexcept(swap(opt1, opt2)) == false, ""); in main()
312 assert(static_cast<bool>(opt2) == true); in main()
313 assert(*opt2 == 2); in main()
316 swap(opt1, opt2); in main()
324 assert(static_cast<bool>(opt2) == true); in main()
325 assert(*opt2 == 2); in main()
330 optional<Z> opt2; in main() local
331 opt2.emplace(2); in main()
332 static_assert(noexcept(swap(opt1, opt2)) == false, ""); in main()
335 assert(static_cast<bool>(opt2) == true); in main()
336 assert(*opt2 == 2); in main()
339 swap(opt1, opt2); in main()
348 assert(static_cast<bool>(opt2) == true); in main()
349 assert(*opt2 == 2); in main()