This patch makes are code less dependant on transitive includes.
This was part of D145800. This patch will be abandoned, but these
changes are still useful. I manually verified declarations of the new
includes are used in these files.
Reviewed By: #libc, philnik
Differential Revision: https://reviews.llvm.org/D148645
12 files changed:
#include <__iterator/wrap_iter.h>
#include <__memory/addressof.h>
#include <__type_traits/add_pointer.h>
+#include <__type_traits/conditional.h>
#include <__utility/move.h>
#include <cstddef>
#include <string_view>
#include <__algorithm/fill.h>
#include <__algorithm/max.h>
#include <__config>
+#include <__iterator/iterator_traits.h>
#include <cstdint>
#include <initializer_list>
#include <vector>
// <vector>
#include <cstddef>
+#include <memory>
#include <vector>
#include "test_macros.h"
#include <cstddef>
#include <type_traits>
+#include <memory>
#include <vector>
#include "count_new.h"
#include <cassert>
#include <vector>
+#include <utility>
#include "test_macros.h"
// Validate whether the container can be copy-assigned with an ADL-hijacking operator&
#include <vector>
+#include <utility>
#include "test_macros.h"
#include "operator_hijacker.h"
// -> vector<typename iterator_traits<InputIterator>::value_type, Allocator>;
//
+#include <algorithm>
#include <vector>
#include <cassert>
#include <cstddef>
// Check that vector constructors don't leak memory when an operation inside the constructor throws an exception
#include <cstddef>
+#include <memory>
#include <type_traits>
#include <vector>
// Validate whether the container can be copy-assigned with an ADL-hijacking operator&
#include <vector>
+#include <utility>
#include "test_macros.h"
#include "operator_hijacker.h"
#include <cassert>
#include <ranges>
#include <type_traits>
+#include <utility>
#include <vector>
struct DefaultConstructibleView : std::ranges::view_base {
#include <optional>
#include <type_traits>
+#include <memory>
#include <vector>
#include <cassert>
#include <cstddef>
#include <vector>
#include <list>
+#include <type_traits>
#include "test_macros.h"