Home
last modified time | relevance | path

Searched refs:throwable_adl_swappable (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/libcxx/test/support/type_classification/
H A Dswappable.h230 class throwable_adl_swappable {
232 throwable_adl_swappable() = default;
234 constexpr throwable_adl_swappable(int value) noexcept : value_(value) {} in throwable_adl_swappable() function
236 constexpr throwable_adl_swappable(throwable_adl_swappable&& other) noexcept in throwable_adl_swappable() function
241 throwable_adl_swappable(throwable_adl_swappable const& other) noexcept in throwable_adl_swappable() function
245 constexpr throwable_adl_swappable&
246 operator=(throwable_adl_swappable other) noexcept {
251 friend constexpr void swap(throwable_adl_swappable& X, in swap()
252 throwable_adl_swappable& Y) noexcept(false) { in swap()
257 operator==(throwable_adl_swappable const& other) const noexcept {
[all …]
/llvm-project-15.0.7/libcxx/test/std/concepts/concepts.lang/concept.swappable/
H A Dswappable.pass.cpp102 auto x = throwable_adl_swappable{0}; in check_throwable_swappable()
103 auto y = throwable_adl_swappable{1}; in check_throwable_swappable()
158 throwable_adl_swappable x[] = {{0}, {1}, {2}, {3}}; in check_throwable_adl_swappable_arrays()
159 throwable_adl_swappable y[] = {{4}, {5}, {6}, {7}}; in check_throwable_adl_swappable_arrays()
285 auto const e = expected<std::optional<throwable_adl_swappable> >{ in main()