#if __cplusplus >= 201703L
-#include <utility>
#include <type_traits>
#include <locale>
#include <iosfwd>
#include <string_view>
#include <system_error>
#include <bits/stl_algobase.h>
+#include <bits/stl_pair.h>
#include <bits/locale_conv.h>
#include <ext/concurrence.h>
#include <bits/shared_ptr.h>
#include <bits/c++config.h>
#include <debug/assertions.h>
#include <type_traits>
-#include <utility>
#include <tuple>
#include <bits/stl_function.h>
#include <bits/functional_hash.h>
#include <debug/safe_sequence.h>
#include <debug/safe_container.h>
#include <debug/safe_iterator.h>
-#include <utility>
+#include <bits/stl_pair.h>
namespace std _GLIBCXX_VISIBILITY(default)
{
#include <debug/safe_sequence.h>
#include <debug/safe_container.h>
#include <debug/safe_iterator.h>
-#include <utility>
+#include <bits/stl_pair.h>
namespace std _GLIBCXX_VISIBILITY(default)
{
#include <debug/safe_sequence.h>
#include <debug/safe_container.h>
#include <debug/safe_iterator.h>
-#include <utility>
+#include <bits/stl_pair.h>
namespace std _GLIBCXX_VISIBILITY(default)
{
#include <debug/safe_sequence.h>
#include <debug/safe_container.h>
#include <debug/safe_iterator.h>
-#include <utility>
+#include <bits/stl_pair.h>
namespace std _GLIBCXX_VISIBILITY(default)
{
} } // namespace std::__debug
#include <vector>
-#include <utility>
#include <debug/safe_sequence.h>
#include <debug/safe_container.h>
#include <debug/safe_iterator.h>
#include <typeinfo>
#include <new>
-#include <utility>
#include <type_traits>
+#include <bits/move.h>
#include <experimental/bits/lfts_config.h>
namespace std _GLIBCXX_VISIBILITY(default)
#include <thread>
#include <tuple>
#include <unordered_map>
-#include <utility>
#include <experimental/netfwd>
#include <bits/unique_ptr.h>
#include <experimental/bits/net.h>
#include <memory>
#include <type_traits>
-#include <utility>
#include <experimental/bits/shared_ptr.h>
#include <bits/functional_hash.h>
#if __cplusplus >= 201402L
-#include <utility>
#include <type_traits>
#include <stdexcept>
#include <new>
#include <bits/functexcept.h>
#include <bits/functional_hash.h>
#include <bits/enable_special_members.h>
+#include <bits/move.h>
#include <experimental/bits/lfts_config.h>
namespace std _GLIBCXX_VISIBILITY(default)
__socket_impl(__socket_impl&& __rhs)
: _M_ctx(__rhs._M_ctx),
- _M_sockfd(std::exchange(__rhs._M_sockfd, -1)),
- _M_bits(std::exchange(__rhs._M_bits, {}))
+ _M_sockfd(std::__exchange(__rhs._M_sockfd, -1)),
+ _M_bits(std::__exchange(__rhs._M_bits, {}))
{ }
__socket_impl&
operator=(__socket_impl&& __rhs)
{
_M_ctx = __rhs._M_ctx;
- _M_sockfd = std::exchange(__rhs._M_sockfd, -1);
- _M_bits = std::exchange(__rhs._M_bits, {});
+ _M_sockfd = std::__exchange(__rhs._M_sockfd, -1);
+ _M_bits = std::__exchange(__rhs._M_bits, {});
return *this;
}
{
__glibcxx_assert(is_open());
cancel(__ec);
- return std::exchange(_M_sockfd, -1);
+ return std::__exchange(_M_sockfd, -1);
}
template<typename _SettableSocketOption>
#pragma GCC system_header
-#include <utility> // UK-300.
#include <bits/stl_algobase.h>
#include <bits/stl_algo.h>
#if __cplusplus > 201703L
# include <unordered_map>
# include <vector>
# include <array>
-# include <utility>
# include <bits/stl_algo.h>
#endif
#if __cplusplus > 201703L
#include <stack>
#include <stdexcept>
#include <string>
-#include <utility>
#include <vector>
#include <map>
#include <cstring>
#include <ext/aligned_buffer.h>
#include <ext/numeric_traits.h>
#include <bits/std_function.h>
+#include <bits/stl_pair.h>
#include <bits/regex_constants.h>
#include <bits/regex_error.h>
#include <bits/regex_automaton.h>
#define _GLIBCXX_OPS_COMMON_H 1
#include <chrono>
+#include <bits/move.h> // std::__exchange
#ifdef _GLIBCXX_HAVE_UNISTD_H
# include <unistd.h>
struct CloseFD {
~CloseFD() { if (fd != -1) posix::close(fd); }
- bool close() { return posix::close(std::exchange(fd, -1)) == 0; }
+ bool close() { return posix::close(std::__exchange(fd, -1)) == 0; }
int fd;
};
D d;
std::default_delete<B[]> db;
typedef decltype(db(&d)) type; // { dg-error "no match" }
-// { dg-error "no type" "" { target *-*-* } 116 }
+// { dg-prune-output "no type named 'type' in 'struct std::enable_if" }
{
std::default_delete<void> d;
d(nullptr); // { dg-error "here" }
- // { dg-error "incomplete" "" { target *-*-* } 81 }
+ // { dg-error "delete pointer to incomplete type" "" { target *-*-* } 0 }
}
#include <span>
#include <string>
#include <vector>
+#include <utility>
#include <testsuite_hooks.h>
#include <testsuite_iterators.h>
#include <span>
#include <string>
#include <vector>
+#include <utility>
#include <testsuite_hooks.h>
#include <testsuite_iterators.h>
#include <span>
#include <string>
#include <vector>
+#include <utility>
#include <testsuite_hooks.h>
#include <testsuite_iterators.h>
#include <span>
#include <string>
#include <vector>
+#include <utility>
#include <testsuite_hooks.h>
#include <testsuite_iterators.h>
// { dg-error "value type is destructible" "" { target *-*-* } 0 }
// In Debug Mode the "required from here" errors come from <debug/vector>
-// { dg-error "required from here" "" { target *-*-* } 173 }
+// { dg-error "required from here" "" { target *-*-* } 172 }
// Needed because of PR c++/92193
// { dg-prune-output "deleted function" }