Skip to content

Commit

Permalink
Keep std::ranges::rbegin and friends for span
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco committed Feb 26, 2020
1 parent 5d62380 commit 0581a47
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/std/tests/P0896R4_ranges_range_machinery/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -968,8 +968,12 @@ STATIC_ASSERT(!ranges::view<std::string_view const&>);

STATIC_ASSERT(test_begin<std::span<int>, std::span<int>::iterator>());
STATIC_ASSERT(test_end<std::span<int>, std::span<int>::iterator>());
STATIC_ASSERT(test_cbegin<std::span<int>, std::span<int>::iterator>());
STATIC_ASSERT(test_cend<std::span<int>, std::span<int>::iterator>());
STATIC_ASSERT(test_rbegin<std::span<int>, std::reverse_iterator<std::span<int>::iterator>>());
STATIC_ASSERT(test_rend<std::span<int>, std::reverse_iterator<std::span<int>::iterator>>());
STATIC_ASSERT(test_crbegin<std::span<int>, std::reverse_iterator<std::span<int>::iterator>>());
STATIC_ASSERT(test_crend<std::span<int>, std::reverse_iterator<std::span<int>::iterator>>());
STATIC_ASSERT(test_size<std::span<int>, std::size_t>());
STATIC_ASSERT(test_empty<std::span<int>, true>());
STATIC_ASSERT(test_data<std::span<int>, int*>());
Expand All @@ -979,8 +983,12 @@ STATIC_ASSERT(ranges::view<std::span<int>>);

STATIC_ASSERT(test_begin<std::span<int> const, std::span<int>::iterator>());
STATIC_ASSERT(test_end<std::span<int> const, std::span<int>::iterator>());
STATIC_ASSERT(test_cbegin<std::span<int> const, std::span<int>::iterator>());
STATIC_ASSERT(test_cend<std::span<int> const, std::span<int>::iterator>());
STATIC_ASSERT(test_rbegin<std::span<int> const, std::reverse_iterator<std::span<int>::iterator>>());
STATIC_ASSERT(test_rend<std::span<int> const, std::reverse_iterator<std::span<int>::iterator>>());
STATIC_ASSERT(test_crbegin<std::span<int> const, std::reverse_iterator<std::span<int>::iterator>>());
STATIC_ASSERT(test_crend<std::span<int> const, std::reverse_iterator<std::span<int>::iterator>>());
STATIC_ASSERT(test_size<std::span<int> const, std::size_t>());
STATIC_ASSERT(test_empty<std::span<int> const, true>());
STATIC_ASSERT(test_data<std::span<int> const, int*>());
Expand All @@ -990,8 +998,12 @@ STATIC_ASSERT(!ranges::view<std::span<int> const>);

STATIC_ASSERT(test_begin<std::span<int>&, std::span<int>::iterator>());
STATIC_ASSERT(test_end<std::span<int>&, std::span<int>::iterator>());
STATIC_ASSERT(test_cbegin<std::span<int>&, std::span<int>::iterator>());
STATIC_ASSERT(test_cend<std::span<int>&, std::span<int>::iterator>());
STATIC_ASSERT(test_rbegin<std::span<int>&, std::reverse_iterator<std::span<int>::iterator>>());
STATIC_ASSERT(test_rend<std::span<int>&, std::reverse_iterator<std::span<int>::iterator>>());
STATIC_ASSERT(test_crbegin<std::span<int>&, std::reverse_iterator<std::span<int>::iterator>>());
STATIC_ASSERT(test_crend<std::span<int>&, std::reverse_iterator<std::span<int>::iterator>>());
STATIC_ASSERT(test_size<std::span<int>&, std::size_t>());
STATIC_ASSERT(test_empty<std::span<int>&, true>());
STATIC_ASSERT(test_data<std::span<int>&, int*>());
Expand All @@ -1001,8 +1013,12 @@ STATIC_ASSERT(!ranges::view<std::span<int>&>);

STATIC_ASSERT(test_begin<std::span<int> const&, std::span<int>::iterator>());
STATIC_ASSERT(test_end<std::span<int> const&, std::span<int>::iterator>());
STATIC_ASSERT(test_cbegin<std::span<int> const&, std::span<int>::iterator>());
STATIC_ASSERT(test_cend<std::span<int> const&, std::span<int>::iterator>());
STATIC_ASSERT(test_rbegin<std::span<int> const&, std::reverse_iterator<std::span<int>::iterator>>());
STATIC_ASSERT(test_rend<std::span<int> const&, std::reverse_iterator<std::span<int>::iterator>>());
STATIC_ASSERT(test_crbegin<std::span<int> const&, std::reverse_iterator<std::span<int>::iterator>>());
STATIC_ASSERT(test_crend<std::span<int> const&, std::reverse_iterator<std::span<int>::iterator>>());
STATIC_ASSERT(test_size<std::span<int> const&, std::size_t>());
STATIC_ASSERT(test_empty<std::span<int> const&, true>());
STATIC_ASSERT(test_data<std::span<int> const&, int*>());
Expand Down

0 comments on commit 0581a47

Please sign in to comment.