Skip to content

Commit e6c613a

Browse files
authored
ranges::containsの実装例がコンパイルエラーなのを修正
1 parent f927616 commit e6c613a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/algorithm/ranges_contains.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ struct contains_impl {
7070
template<input_range R, class T, class Proj = identity>
7171
requires indirect_binary_predicate<ranges::equal_to, projected<iterator_t<R>, Proj>, const T*>
7272
constexpr bool operator()(R&& r, const T& value, Proj proj = {}) const {
73-
return ranges::find(std::forward(r), value, proj) != last;
73+
return (*this)(begin(r), end(r), value, ref(proj));
7474
}
7575
};
7676

0 commit comments

Comments
 (0)