[libc++][test][NFC] Remove unused inclusions of <iostream> (#134776)

Some test files for flat container adaptors redundantly include
`<iostream>` and, surprisingly, `<cstddef>`. This patch removes the
redundant inclusions.

Inclusions of `<vector>` is also removed since a sane implementation is
expected to make instantiation of `flat_(multi)map<K, V>` or
`flat_(multi)set<K>` valid when only `<flat_map>` or `<flat_set>` is
included.
This commit is contained in:
A. Jiang 2025-04-13 15:17:58 +08:00 committed by GitHub
parent 12a7155ee2
commit 5c45e239e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 0 additions and 12 deletions

View File

@ -19,16 +19,13 @@
// const_reverse_iterator crend() const noexcept;
#include <cassert>
#include <cstddef>
#include <deque>
#include <flat_map>
#include <functional>
#include <vector>
#include <iterator>
#include "test_macros.h"
#include <iostream>
int main(int, char**) {
{

View File

@ -21,16 +21,13 @@
// const_reverse_iterator crend() const noexcept;
#include <cassert>
#include <cstddef>
#include <deque>
#include <flat_map>
#include <functional>
#include <vector>
#include <iterator>
#include "test_macros.h"
#include <iostream>
int main(int, char**) {
{

View File

@ -19,16 +19,13 @@
// const_reverse_iterator crend() const noexcept;
#include <cassert>
#include <cstddef>
#include <deque>
#include <flat_set>
#include <functional>
#include <vector>
#include <iterator>
#include "test_macros.h"
#include <iostream>
void test() {
{

View File

@ -19,16 +19,13 @@
// const_reverse_iterator crend() const noexcept;
#include <cassert>
#include <cstddef>
#include <deque>
#include <flat_set>
#include <functional>
#include <vector>
#include <iterator>
#include "test_macros.h"
#include <iostream>
void test() {
{