Lines Matching refs:exchange
29 if (12 != std::exchange(v,23) || v != 23) in test_constexpr()
32 if (23 != std::exchange(v,static_cast<short>(67)) || v != 67) in test_constexpr()
35 if (67 != std::exchange<int, short>(v, {}) || v != 0) in test_constexpr()
47 assert ( std::exchange ( v, 23 ) == 12 ); in main()
49 assert ( std::exchange ( v, static_cast<short>(67) ) == 23 ); in main()
52 assert ((std::exchange<int, short> ( v, {} )) == 67 ); in main()
59 assert ( !std::exchange ( b, true )); in main()
67 assert ( std::exchange ( s3, s2 ) == s1 ); in main()
69 assert ( std::exchange ( s3, "Hi Mom!" ) == s2 ); in main()
73 assert ( std::exchange ( s3, {} ) == s2 ); in main()
77 assert ( std::exchange ( s3, "" ) == s2 ); in main()