Skip to content

Commit 7119a5d

Browse files
committed
Moved all headers into a cppitertools directory
Removed test build files from git tracking
1 parent 60171c0 commit 7119a5d

File tree

98 files changed

+74
-74
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+74
-74
lines changed

CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ add_library(cppitertools::cppitertools ALIAS cppitertools)
1111

1212
target_include_directories(cppitertools INTERFACE
1313
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
14-
$<INSTALL_INTERFACE:${cppitertools_INSTALL_INCLUDE_DIR}/cppitertools>)
14+
$<INSTALL_INTERFACE:${cppitertools_INSTALL_INCLUDE_DIR}>)
1515

1616
# require C++17
1717
target_compile_features(cppitertools INTERFACE cxx_std_17)
@@ -29,8 +29,8 @@ install(
2929
EXPORT cppitertools-targets)
3030

3131
install(
32-
DIRECTORY .
33-
DESTINATION ${cppitertools_INSTALL_INCLUDE_DIR}/cppitertools)
32+
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/cppitertools
33+
DESTINATION ${cppitertools_INSTALL_INCLUDE_DIR})
3434

3535
install(
3636
EXPORT cppitertools-targets
File renamed without changes.
File renamed without changes.

chain.hpp cppitertools/chain.hpp

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

count.hpp cppitertools/count.hpp

File renamed without changes.

cycle.hpp cppitertools/cycle.hpp

File renamed without changes.
File renamed without changes.
File renamed without changes.

filter.hpp cppitertools/filter.hpp

File renamed without changes.
File renamed without changes.
File renamed without changes.

imap.hpp cppitertools/imap.hpp

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

range.hpp cppitertools/range.hpp

File renamed without changes.

repeat.hpp cppitertools/repeat.hpp

File renamed without changes.
File renamed without changes.

slice.hpp cppitertools/slice.hpp

File renamed without changes.
File renamed without changes.

sorted.hpp cppitertools/sorted.hpp

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

zip.hpp cppitertools/zip.hpp

File renamed without changes.
File renamed without changes.

examples/accumulate_examples.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#include <accumulate.hpp>
2-
#include <range.hpp>
1+
#include <cppitertools/accumulate.hpp>
2+
#include <cppitertools/range.hpp>
33

44
#include <iostream>
55
#include <vector>

examples/batched_examples.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <batched.hpp>
1+
#include <cppitertools/batched.hpp>
22

33
#include <iostream>
44
#include <vector>

examples/chain_examples.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <chain.hpp>
1+
#include <cppitertools/chain.hpp>
22

33
#include <vector>
44
#include <string>

examples/chunked_examples.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <chunked.hpp>
1+
#include <cppitertools/chunked.hpp>
22

33
#include <iostream>
44
#include <vector>

examples/combinatoric_examples.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#include <combinations.hpp>
2-
#include <combinations_with_replacement.hpp>
3-
#include <permutations.hpp>
4-
#include <product.hpp>
5-
#include <powerset.hpp>
1+
#include <cppitertools/combinations.hpp>
2+
#include <cppitertools/combinations_with_replacement.hpp>
3+
#include <cppitertools/permutations.hpp>
4+
#include <cppitertools/product.hpp>
5+
#include <cppitertools/powerset.hpp>
66

77
#include <vector>
88
#include <string>

examples/compress_examples.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <compress.hpp>
1+
#include <cppitertools/compress.hpp>
22

33
#include <vector>
44
#include <iostream>

examples/count_examples.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <count.hpp>
1+
#include <cppitertools/count.hpp>
22

33
#include <iostream>
44

examples/cycle_examples.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <cycle.hpp>
1+
#include <cppitertools/cycle.hpp>
22

33
#include <vector>
44
#include <string>

examples/dropwhile_examples.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <dropwhile.hpp>
1+
#include <cppitertools/dropwhile.hpp>
22

33
#include <vector>
44
#include <iostream>

examples/enumerate_examples.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <enumerate.hpp>
1+
#include <cppitertools/enumerate.hpp>
22

33
#include <string>
44
#include <iostream>

examples/filter_examples.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <filter.hpp>
1+
#include <cppitertools/filter.hpp>
22

33
#include <vector>
44
#include <iostream>

examples/filterfalse_examples.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <filterfalse.hpp>
1+
#include <cppitertools/filterfalse.hpp>
22

33
#include <vector>
44
#include <string>

examples/groupby_examples.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <groupby.hpp>
1+
#include <cppitertools/groupby.hpp>
22

33
#include <vector>
44
#include <iostream>

examples/imap_examples.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <imap.hpp>
1+
#include <cppitertools/imap.hpp>
22

33
#include <vector>
44
#include <iostream>

examples/mixed_examples.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#include <itertools.hpp>
2-
#include <zip_longest.hpp>
1+
#include <cppitertools/itertools.hpp>
2+
#include <cppitertools/zip_longest.hpp>
33

44
#include <vector>
55
#include <tuple>

examples/range_examples.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <range.hpp>
1+
#include <cppitertools/range.hpp>
22

33
#include <iostream>
44

examples/repeat_examples.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <repeat.hpp>
1+
#include <cppitertools/repeat.hpp>
22

33
#include <iostream>
44

examples/reversed_examples.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <reversed.hpp>
1+
#include <cppitertools/reversed.hpp>
22

33
#include <iostream>
44
#include <vector>

examples/slice_examples.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include <iostream>
22

3-
#include <slice.hpp>
4-
#include <range.hpp>
3+
#include <cppitertools/slice.hpp>
4+
#include <cppitertools/range.hpp>
55

66
#include <vector>
77
#include <array>

examples/sliding_window_examples.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "sliding_window.hpp"
1+
#include "cppitertools/sliding_window.hpp"
22

33
#include <iostream>
44
#include <vector>

examples/sorted_examples.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <sorted.hpp>
1+
#include <cppitertools/sorted.hpp>
22

33
#include <iostream>
44
#include <vector>

examples/starmap_examples.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <starmap.hpp>
1+
#include <cppitertools/starmap.hpp>
22

33
#include <array>
44
#include <tuple>

examples/takewhile_examples.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <takewhile.hpp>
1+
#include <cppitertools/takewhile.hpp>
22

33
#include <vector>
44
#include <iostream>

examples/unique_everseen_examples.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <unique_everseen.hpp>
1+
#include <cppitertools/unique_everseen.hpp>
22

33
#include <vector>
44
#include <iostream>

examples/unique_justseen_examples.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <unique_justseen.hpp>
1+
#include <cppitertools/unique_justseen.hpp>
22

33
#include <vector>
44
#include <iostream>

examples/zip_examples.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <zip.hpp>
1+
#include <cppitertools/zip.hpp>
22

33
#include <vector>
44
#include <string>

examples/zip_longest_examples.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <zip_longest.hpp>
1+
#include <cppitertools/zip_longest.hpp>
22

33
#include <vector>
44
#include <string>

test/helpers.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef TEST_HELPER_H_
22
#define TEST_HELPER_H_
33

4-
#include <internal/iterbase.hpp>
4+
#include <cppitertools/internal/iterbase.hpp>
55
#include <iostream>
66
#include <sstream>
77
#include <stdexcept>

test/test_accumulate.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <accumulate.hpp>
1+
#include <cppitertools/accumulate.hpp>
22
#include "helpers.hpp"
33

44
#include <iterator>

test/test_batched.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <batched.hpp>
1+
#include <cppitertools/batched.hpp>
22

33
#include <array>
44
#include <string>

test/test_chain.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <chain.hpp>
1+
#include <cppitertools/chain.hpp>
22
#include "helpers.hpp"
33

44
#include <iterator>

test/test_chunked.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <chunked.hpp>
1+
#include <cppitertools/chunked.hpp>
22

33
#include <array>
44
#include <string>

test/test_combinations.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#undef CHAR_RANGE_DEFAULT_CONSTRUCTIBLE
55
#undef DEFINE_DEFAULT_ITERATOR_CTOR
66

7-
#include <combinations.hpp>
7+
#include <cppitertools/combinations.hpp>
88
#include <iterator>
99
#include <set>
1010
#include <string>

test/test_combinations_with_replacement.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <combinations_with_replacement.hpp>
1+
#include <cppitertools/combinations_with_replacement.hpp>
22
#include <iterator>
33
#include <set>
44
#include <string>

test/test_compress.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <compress.hpp>
1+
#include <cppitertools/compress.hpp>
22
#include "helpers.hpp"
33

44
#include <iterator>

test/test_count.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <count.hpp>
1+
#include <cppitertools/count.hpp>
22
#include "helpers.hpp"
33

44
#include <iterator>

test/test_cycle.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <cycle.hpp>
1+
#include <cppitertools/cycle.hpp>
22

33
#include "helpers.hpp"
44

test/test_dropwhile.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <dropwhile.hpp>
1+
#include <cppitertools/dropwhile.hpp>
22

33
#include "helpers.hpp"
44

test/test_enumerate.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <enumerate.hpp>
1+
#include <cppitertools/enumerate.hpp>
22

33
#include "helpers.hpp"
44

test/test_filter.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <filter.hpp>
1+
#include <cppitertools/filter.hpp>
22

33
#include "helpers.hpp"
44

test/test_filterfalse.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <filterfalse.hpp>
1+
#include <cppitertools/filterfalse.hpp>
22

33
#include "helpers.hpp"
44

test/test_groupby.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <groupby.hpp>
1+
#include <cppitertools/groupby.hpp>
22

33
#include "helpers.hpp"
44

test/test_imap.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <imap.hpp>
1+
#include <cppitertools/imap.hpp>
22

33
#include "helpers.hpp"
44

test/test_iterator_wrapper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// NOTE this header tests implementation details
22

33
#include "catch.hpp"
4-
#include "internal/iterator_wrapper.hpp"
4+
#include "cppitertools/internal/iterator_wrapper.hpp"
55

66
// I'm using a std::vector of 1 int instead of just an int in order to give
77
// the iterator types non-trivial constructors, destructors, and assignment.

test/test_iteratoriterator.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <internal/iteratoriterator.hpp>
1+
#include <cppitertools/internal/iteratoriterator.hpp>
22

33
#include <string>
44
#include <vector>

test/test_iterbase.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// on any of this. Users of the library must consider all of this undocumented
33
//
44

5-
#include <enumerate.hpp>
6-
#include <internal/iterbase.hpp>
5+
#include <cppitertools/enumerate.hpp>
6+
#include <cppitertools/internal/iterbase.hpp>
77
#include <iterator>
88
#include <list>
99
#include <string>

test/test_mixed.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include <vector>
55

66
#include "catch.hpp"
7-
#include "itertools.hpp"
7+
#include "cppitertools/itertools.hpp"
88

99
class MyUnMovable {
1010
int val;

test/test_permutations.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <permutations.hpp>
1+
#include <cppitertools/permutations.hpp>
22

33
#include "helpers.hpp"
44

test/test_powerset.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <powerset.hpp>
1+
#include <cppitertools/powerset.hpp>
22

33
#define CHAR_RANGE_DEFAULT_CONSTRUCTIBLE
44
#include "helpers.hpp"

test/test_product.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <product.hpp>
1+
#include <cppitertools/product.hpp>
22

33
#define DEFINE_BASIC_ITERABLE_COPY_CTOR
44
#define DEFINE_BASIC_ITERABLE_CONST_BEGIN_AND_END

test/test_range.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "range.hpp"
1+
#include "cppitertools/range.hpp"
22

33
#include <algorithm>
44
#include <iterator>

test/test_repeat.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include <iterator>
2-
#include <repeat.hpp>
2+
#include <cppitertools/repeat.hpp>
33
#include <string>
44
#include <vector>
55

test/test_reversed.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <reversed.hpp>
1+
#include <cppitertools/reversed.hpp>
22

33
#include <array>
44
#include <string>

test/test_slice.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <slice.hpp>
1+
#include <cppitertools/slice.hpp>
22

33
#include <string>
44
#include <utility>

test/test_sliding_window.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <sliding_window.hpp>
1+
#include <cppitertools/sliding_window.hpp>
22

33
#include <array>
44
#include <string>

test/test_sorted.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <sorted.hpp>
1+
#include <cppitertools/sorted.hpp>
22

33
#include <array>
44
#include <set>
@@ -46,7 +46,7 @@ TEST_CASE("sorted: const iteration", "[sorted][const]") {
4646
REQUIRE(v == vc);
4747
}
4848

49-
//FIXME: This test currently fails (STL assertion fails on MSVC with debug library, simple test failure on gcc). The problem is 'sorted' will sort twice, once for non-const and once for const container; the resulting iterators are thus not on the same container (violating domain of == as specified in C++17 [forward.iterators]�2). Remove [!hide] tag when fixed.
49+
//FIXME: This test currently fails (STL assertion fails on MSVC with debug library, simple test failure on gcc). The problem is 'sorted' will sort twice, once for non-const and once for const container; the resulting iterators are thus not on the same container (violating domain of == as specified in C++17 [forward.iterators]�2). Remove [!hide] tag when fixed.
5050
TEST_CASE("sorted: const iterators can be compared to non-const iterators",
5151
"[sorted][const][!hide]") {
5252
auto s = sorted(Vec{1});

0 commit comments

Comments
 (0)