[libcxx-commits] [libcxx] [libc++][iterator] Applied `[[nodiscard]]` (PR #172200)

Hristo Hristov via libcxx-commits libcxx-commits at lists.llvm.org
Mon Dec 15 21:26:47 PST 2025


================
@@ -80,7 +80,8 @@ class __wrap_iter {
     --(*this);
     return __tmp;
   }
-  _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 __wrap_iter operator+(difference_type __n) const _NOEXCEPT {
+  [[__nodiscard__]] _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 __wrap_iter
+  operator+(difference_type __n) const _NOEXCEPT {
----------------
H-G-Hristov wrote:

@philnik777 @frederick-vs-ja I am in the process to annotate `<iteraror>`. I have annotated the private iterators too. Do we need them annotated (from end-user perspective)? Do we want them annotated? WDYT?

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


More information about the libcxx-commits mailing list