Skip to content

Commit ea82cce

Browse files
committed
[libc++][ranges] implement 'ranges::elements_of'
1 parent 68a3e3f commit ea82cce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libcxx/include/__ranges/elements_of.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ struct elements_of {
3838
// This explicit constructor is required because AppleClang 15 hasn't
3939
// implemented P0960R3.
4040
template <std::ranges::range _Range2, class _Allocator2 = std::allocator<byte>>
41-
_LIBCPP_HIDE_FROM_ABI explicit constexpr elements_of(_Range2&& Range, _Allocator2&& Alloc = _Allocator())
42-
: range(std::forward<_Range2>(Range)), allocator(std::forward<_Allocator2>(Alloc)) {}
41+
_LIBCPP_HIDE_FROM_ABI explicit constexpr elements_of(_Range2&& __range, _Allocator2&& __alloc = _Allocator())
42+
: range(std::forward<_Range2>(__range)), allocator(std::forward<_Allocator2>(__alloc)) {}
4343
# endif
4444
};
4545

libcxx/test/std/ranges/range.utility/range.elementsof/elements_of.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ struct Range {
2727

2828
Iterator begin() { return Iterator(data_.data()); }
2929

30-
sentinel_wrapper<Iterator> end() { return Sentinel(Iterator(data_.data() + data_.size())); }
30+
Sentinel end() { return Sentinel(Iterator(data_.data() + data_.size())); }
3131

3232
private:
3333
std::vector<int> data_ = {0, 1, 2, 3};

0 commit comments

Comments
 (0)