Lines Matching refs:swap
48 friend void swap(Y& x, Y& y) {std::swap(x.i_, y.i_);} in swap() function
61 friend void swap(Z& x, Z& y) {throw 6;} in swap() function
73 static_assert(noexcept(swap(opt1, opt2)) == true, ""); in main()
76 swap(opt1, opt2); in main()
83 static_assert(noexcept(swap(opt1, opt2)) == true, ""); in main()
87 swap(opt1, opt2); in main()
95 static_assert(noexcept(swap(opt1, opt2)) == true, ""); in main()
99 swap(opt1, opt2); in main()
107 static_assert(noexcept(swap(opt1, opt2)) == true, ""); in main()
112 swap(opt1, opt2); in main()
121 static_assert(noexcept(swap(opt1, opt2)) == true, ""); in main()
124 swap(opt1, opt2); in main()
132 static_assert(noexcept(swap(opt1, opt2)) == true, ""); in main()
137 swap(opt1, opt2); in main()
146 static_assert(noexcept(swap(opt1, opt2)) == true, ""); in main()
151 swap(opt1, opt2); in main()
160 static_assert(noexcept(swap(opt1, opt2)) == true, ""); in main()
166 swap(opt1, opt2); in main()
176 static_assert(noexcept(swap(opt1, opt2)) == false, ""); in main()
179 swap(opt1, opt2); in main()
187 static_assert(noexcept(swap(opt1, opt2)) == false, ""); in main()
192 swap(opt1, opt2); in main()
201 static_assert(noexcept(swap(opt1, opt2)) == false, ""); in main()
206 swap(opt1, opt2); in main()
215 static_assert(noexcept(swap(opt1, opt2)) == false, ""); in main()
221 swap(opt1, opt2); in main()
231 static_assert(noexcept(swap(opt1, opt2)) == false, ""); in main()
234 swap(opt1, opt2); in main()
242 static_assert(noexcept(swap(opt1, opt2)) == false, ""); in main()
248 swap(opt1, opt2); in main()
263 static_assert(noexcept(swap(opt1, opt2)) == false, ""); in main()
269 swap(opt1, opt2); in main()
285 static_assert(noexcept(swap(opt1, opt2)) == false, ""); in main()
292 swap(opt1, opt2); in main()