Skip to content

Commit

Permalink
[libc++] Remove cpp17_input_iterator.h
Browse files Browse the repository at this point in the history
Reviewed By: Quuxplusone, #libc

Spies: libcxx-commits

Differential Revision: https://reviews.llvm.org/D119881
  • Loading branch information
philnik777 committed Feb 16, 2022
1 parent 2c58cde commit f75f171
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 46 deletions.
40 changes: 0 additions & 40 deletions libcxx/test/std/strings/basic.string/cpp17_input_iterator.h

This file was deleted.

Expand Up @@ -20,7 +20,7 @@

#include "test_macros.h"
#include "test_allocator.h"
#include "../cpp17_input_iterator.h"
#include "test_iterators.h"
#include "min_allocator.h"

template <class It>
Expand All @@ -34,8 +34,11 @@ test(It first, It last)
LIBCPP_ASSERT(s2.__invariants());
assert(s2.size() == static_cast<std::size_t>(std::distance(first, last)));
unsigned i = 0;
for (It it = first; it != last; ++it, ++i)
for (It it = first; it != last;) {
assert(s2[i] == *it);
++it;
++i;
}
assert(s2.get_allocator() == A());
assert(s2.capacity() >= s2.size());
}
Expand All @@ -50,8 +53,11 @@ test(It first, It last, const A& a)
LIBCPP_ASSERT(s2.__invariants());
assert(s2.size() == static_cast<std::size_t>(std::distance(first, last)));
unsigned i = 0;
for (It it = first; it != last; ++it, ++i)
for (It it = first; it != last;) {
assert(s2[i] == *it);
++it;
++i;
}
assert(s2.get_allocator() == a);
assert(s2.capacity() >= s2.size());
}
Expand Down
Expand Up @@ -31,7 +31,6 @@

#include "test_macros.h"
#include "test_allocator.h"
#include "../cpp17_input_iterator.h"
#include "min_allocator.h"

bool test() {
Expand Down
Expand Up @@ -33,7 +33,6 @@

#include "test_macros.h"
#include "test_allocator.h"
#include "../cpp17_input_iterator.h"
#include "min_allocator.h"

bool test() {
Expand Down
Expand Up @@ -37,7 +37,6 @@

#include "test_macros.h"
#include "test_allocator.h"
#include "../cpp17_input_iterator.h"
#include "min_allocator.h"

bool test() {
Expand Down

0 comments on commit f75f171

Please sign in to comment.