[libcxx-commits] [libcxx] [libc++][ranges] Applied `[[nodiscard]]` to `filter_view` (PR #173460)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Wed Dec 24 01:11:57 PST 2025


================
@@ -194,7 +194,7 @@ class filter_view<_View, _Pred>::__iterator : public __filter_iterator_category<
     return __x.__current_ == __y.__current_;
   }
 
-  _LIBCPP_HIDE_FROM_ABI friend constexpr range_rvalue_reference_t<_View>
+  [[nodiscard]] _LIBCPP_HIDE_FROM_ABI friend constexpr range_rvalue_reference_t<_View>
----------------
philnik777 wrote:

This seems untested?

https://github.com/llvm/llvm-project/pull/173460


More information about the libcxx-commits mailing list