Skip to content

Commit

Permalink
Fix vectors with fancy pointers emitting STL internal checks in ran…
Browse files Browse the repository at this point in the history
…ges algorithms (#4244)
  • Loading branch information
StephanTLavavej authored Dec 7, 2023
1 parent ec7f7ba commit cff27f7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions stl/inc/vector
Original file line number Diff line number Diff line change
Expand Up @@ -1855,20 +1855,20 @@ public:
return rend();
}

_NODISCARD _CONSTEXPR20 pointer _Unchecked_begin() noexcept {
return _Mypair._Myval2._Myfirst;
_NODISCARD _CONSTEXPR20 _Ty* _Unchecked_begin() noexcept {
return _Unfancy_maybe_null(_Mypair._Myval2._Myfirst);
}

_NODISCARD _CONSTEXPR20 const_pointer _Unchecked_begin() const noexcept {
return _Mypair._Myval2._Myfirst;
_NODISCARD _CONSTEXPR20 const _Ty* _Unchecked_begin() const noexcept {
return _Unfancy_maybe_null(_Mypair._Myval2._Myfirst);
}

_NODISCARD _CONSTEXPR20 pointer _Unchecked_end() noexcept {
return _Mypair._Myval2._Mylast;
_NODISCARD _CONSTEXPR20 _Ty* _Unchecked_end() noexcept {
return _Unfancy_maybe_null(_Mypair._Myval2._Mylast);
}

_NODISCARD _CONSTEXPR20 const_pointer _Unchecked_end() const noexcept {
return _Mypair._Myval2._Mylast;
_NODISCARD _CONSTEXPR20 const _Ty* _Unchecked_end() const noexcept {
return _Unfancy_maybe_null(_Mypair._Myval2._Mylast);
}

_NODISCARD_EMPTY_MEMBER _CONSTEXPR20 bool empty() const noexcept {
Expand Down

0 comments on commit cff27f7

Please sign in to comment.