Skip to content

Commit

Permalink
Merge pull request #200 from tcbrindle/pr/remove-simple-sequence
Browse files Browse the repository at this point in the history
Remove simple_sequence
  • Loading branch information
tcbrindle authored Aug 15, 2024
2 parents 0ebf699 + 14effc2 commit 5464ea3
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 215 deletions.
1 change: 0 additions & 1 deletion include/flux/core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@
#include <flux/core/inline_sequence_base.hpp>
#include <flux/core/optional.hpp>
#include <flux/core/sequence_access.hpp>
#include <flux/core/simple_sequence_base.hpp>

#endif // FLUX_CORE_HPP_INCLUDED
86 changes: 0 additions & 86 deletions include/flux/core/simple_sequence_base.hpp

This file was deleted.

1 change: 0 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ add_executable(test-flux
test_overflow.cpp
test_optional.cpp
test_predicates.cpp
test_simple_sequence.cpp
test_apply.cpp

test_adjacent.cpp
Expand Down
104 changes: 0 additions & 104 deletions test/test_simple_sequence.cpp

This file was deleted.

23 changes: 0 additions & 23 deletions test/test_take.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,6 @@

namespace {

struct Tester : flux::simple_sequence_base<Tester> {

int i = 0;

constexpr auto maybe_next() -> std::optional<int>
{
return {i++};
}
};

constexpr bool test_take()
{
{
Expand Down Expand Up @@ -57,19 +47,6 @@ constexpr bool test_take()
STATIC_CHECK(check_equal(taken, {0, 1, 2}));
}

{
auto taken = Tester{}.take(3);

using T = decltype(taken);
static_assert(flux::sequence<T>);
static_assert(not flux::multipass_sequence<T>);
static_assert(not flux::sized_sequence<T>);

static_assert(not flux::sequence<T const>);

STATIC_CHECK(check_equal(taken, {0, 1, 2}));
}

// test taking all the elements
{
auto arr = std::array{1, 2, 3, 4, 5};
Expand Down

0 comments on commit 5464ea3

Please sign in to comment.