Optimize copy_str for counting_iterator

This commit is contained in:
Victor Zverovich
2020-09-22 07:38:19 -07:00
parent 2591ab91c3
commit 16410056bf
2 changed files with 12 additions and 1 deletions

View File

@@ -147,6 +147,7 @@ TEST(IteratorTest, CountingIterator) {
auto prev = it++;
EXPECT_EQ(prev.count(), 0);
EXPECT_EQ(it.count(), 1);
EXPECT_EQ((it + 41).count(), 42);
}
TEST(IteratorTest, TruncatingIterator) {