We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92f8d68 commit c52bcdbCopy full SHA for c52bcdb
llvm/include/llvm/ADT/STLExtras.h
@@ -416,7 +416,7 @@ static constexpr bool HasFreeFunctionRBegin =
416
} // namespace detail
417
418
// Returns an iterator_range over the given container which iterates in reverse.
419
-// Does not mutate the containers.
+// Does not mutate the container.
420
template <typename ContainerTy> [[nodiscard]] auto reverse(ContainerTy &&C) {
421
if constexpr (detail::HasFreeFunctionRBegin<ContainerTy>)
422
return make_range(adl_rbegin(C), adl_rend(C));
0 commit comments