Searched refs:ConstSwappable (Results 1 – 3 of 3) sorted by relevance
/llvm-project/libcxx/test/std/utilities/utility/pairs/pairs.spec/ |
H A D | non_member_const_swap.pass.cpp | 28 struct ConstSwappable { struct 30 …friend constexpr void swap(const ConstSwappable& lhs, const ConstSwappable& rhs) { std::swap(lhs.i… in swap() argument 33 static_assert(std::is_swappable_v<const std::pair<ConstSwappable, ConstSwappable>>); 34 static_assert(!std::is_swappable_v<const std::pair<NonConstSwappable, ConstSwappable>>); 35 static_assert(!std::is_swappable_v<const std::pair<ConstSwappable, NonConstSwappable>>); 59 using P = std::pair<const ConstSwappable, const ConstSwappable>; in test() 60 const P p1(ConstSwappable{0}, ConstSwappable{1}); in test() 61 const P p2(ConstSwappable{2}, ConstSwappable{3}); in test()
|
/llvm-project/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.swap/ |
H A D | member_swap_const.pass.cpp | 51 struct ConstSwappable { struct 55 constexpr void swap(const ConstSwappable& lhs, const ConstSwappable& rhs) { std::swap(lhs.i, rhs.i)… in swap() argument 59 typedef std::tuple<const ConstSwappable> T; in test() 60 const T t0(ConstSwappable{0}); in test() 61 T t1(ConstSwappable{1}); in test() 67 typedef std::tuple<ConstSwappable, ConstSwappable> T; in test() 77 typedef std::tuple<ConstSwappable, const ConstSwappable, const ConstSwappable> T; in test()
|
/llvm-project/libcxx/test/std/utilities/utility/pairs/pairs.pair/ |
H A D | swap_member_const.pass.cpp | 40 struct ConstSwappable { struct 42 …friend constexpr void swap(const ConstSwappable& lhs, const ConstSwappable& rhs) { std::swap(lhs.i… in swap() argument 48 using P = std::pair<const ConstSwappable, const ConstSwappable>; in test() 49 const P p1(ConstSwappable{0}, ConstSwappable{1}); in test() 50 const P p2(ConstSwappable{2}, ConstSwappable{3}); in test()
|