Searched refs:can_swap (Results 1 - 3 of 3) sorted by relevance

/external/libcxx/test/std/utilities/utility/utility.swap/
H A Dswap.pass.cpp61 constexpr bool can_swap() { function
88 static_assert(can_swap<CopyOnly&>(), "");
89 static_assert(can_swap<MoveOnly&>(), "");
90 static_assert(can_swap<NoexceptMoveOnly&>(), "");
92 static_assert(!can_swap<NotMoveConstructible&>(), "");
93 static_assert(!can_swap<NotMoveAssignable&>(), "");
H A Dswap_array.pass.cpp52 constexpr bool can_swap() { function
91 static_assert(can_swap<CA&>(), "");
92 static_assert(can_swap<MA&>(), "");
93 static_assert(!can_swap<NA&>(), "");
/external/libcxx/test/std/containers/sequences/array/array.special/
H A Dswap.pass.cpp37 struct can_swap : std::is_same<decltype(can_swap_imp<Tp>(0)), void> {}; struct in inherits:std::is_same
68 static_assert(can_swap<C0&>::value, "");
82 static_assert(!can_swap<C1&>::value, "");

Completed in 141 milliseconds