Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stl/inc/vector
Original file line number Diff line number Diff line change
Expand Up @@ -2798,7 +2798,7 @@ public:
}

_NODISCARD _CONSTEXPR20_CONTAINER bool empty() const noexcept {
return size() == 0;
return this->_Mysize == 0;
}

_NODISCARD _CONSTEXPR20_CONTAINER allocator_type get_allocator() const noexcept {
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/xstring
Original file line number Diff line number Diff line change
Expand Up @@ -4016,7 +4016,7 @@ public:
#endif // _HAS_CXX20

_NODISCARD _CONSTEXPR20_CONTAINER bool empty() const noexcept {
return size() == 0;
return _Mypair._Myval2._Mysize == 0;
}

_CONSTEXPR20_CONTAINER size_type copy(
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/xtree
Original file line number Diff line number Diff line change
Expand Up @@ -1216,7 +1216,7 @@ public:
}

_NODISCARD bool empty() const noexcept {
return size() == 0;
return _Get_scary()->_Mysize == 0;
}

_NODISCARD allocator_type get_allocator() const noexcept {
Expand Down