@@ -732,50 +732,52 @@ public:
732732
733733 _LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI void assign (size_type __n, const value_type& __v);
734734
735- _LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI allocator_type get_allocator () const _NOEXCEPT {
735+ [[__nodiscard__]] _LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI allocator_type get_allocator () const _NOEXCEPT {
736736 return allocator_type (this ->__alloc_ );
737737 }
738738
739- _LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI iterator begin () _NOEXCEPT {
739+ [[__nodiscard__]] _LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI iterator begin () _NOEXCEPT {
740740 return iterator (__base::__before_begin ()->__next_ );
741741 }
742- _LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI const_iterator begin () const _NOEXCEPT {
742+ [[__nodiscard__]] _LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI const_iterator begin () const _NOEXCEPT {
743743 return const_iterator (__base::__before_begin ()->__next_ );
744744 }
745- _LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI iterator end () _NOEXCEPT { return iterator (nullptr ); }
746- _LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI const_iterator end () const _NOEXCEPT {
745+ [[__nodiscard__]] _LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI iterator end () _NOEXCEPT {
746+ return iterator (nullptr );
747+ }
748+ [[__nodiscard__]] _LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI const_iterator end () const _NOEXCEPT {
747749 return const_iterator (nullptr );
748750 }
749751
750- _LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI const_iterator cbegin () const _NOEXCEPT {
752+ [[__nodiscard__]] _LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI const_iterator cbegin () const _NOEXCEPT {
751753 return const_iterator (__base::__before_begin ()->__next_ );
752754 }
753- _LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI const_iterator cend () const _NOEXCEPT {
755+ [[__nodiscard__]] _LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI const_iterator cend () const _NOEXCEPT {
754756 return const_iterator (nullptr );
755757 }
756758
757- _LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI iterator before_begin () _NOEXCEPT {
759+ [[__nodiscard__]] _LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI iterator before_begin () _NOEXCEPT {
758760 return iterator (__base::__before_begin ());
759761 }
760- _LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI const_iterator before_begin () const _NOEXCEPT {
762+ [[__nodiscard__]] _LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI const_iterator before_begin () const _NOEXCEPT {
761763 return const_iterator (__base::__before_begin ());
762764 }
763- _LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI const_iterator cbefore_begin () const _NOEXCEPT {
765+ [[__nodiscard__]] _LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI const_iterator cbefore_begin () const _NOEXCEPT {
764766 return const_iterator (__base::__before_begin ());
765767 }
766768
767769 [[__nodiscard__]] _LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI bool empty () const _NOEXCEPT {
768770 return __base::__before_begin ()->__next_ == nullptr ;
769771 }
770- _LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI size_type max_size () const _NOEXCEPT {
772+ [[__nodiscard__]] _LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI size_type max_size () const _NOEXCEPT {
771773 return std::min<size_type>(__node_traits::max_size (this ->__alloc_ ), numeric_limits<difference_type>::max ());
772774 }
773775
774- _LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI reference front () {
776+ [[__nodiscard__]] _LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI reference front () {
775777 _LIBCPP_ASSERT_NON_NULL (!empty (), " forward_list::front called on an empty list" );
776778 return __base::__before_begin ()->__next_ ->__get_value ();
777779 }
778- _LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI const_reference front () const {
780+ [[__nodiscard__]] _LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI const_reference front () const {
779781 _LIBCPP_ASSERT_NON_NULL (!empty (), " forward_list::front called on an empty list" );
780782 return __base::__before_begin ()->__next_ ->__get_value ();
781783 }
0 commit comments