Skip to content

Commit

Permalink
Revert changes for list and forward_list
Browse files Browse the repository at this point in the history
  • Loading branch information
winner245 committed Feb 12, 2025
1 parent 76991ef commit b98de1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions libcxx/include/forward_list
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ public:
_LIBCPP_HIDE_FROM_ABI forward_list& operator=(forward_list&& __x) noexcept(
(__node_traits::propagate_on_container_move_assignment::value &&
is_nothrow_move_assignable<allocator_type>::value) ||
__node_traits::is_always_equal::value);
allocator_traits<allocator_type>::is_always_equal::value);

_LIBCPP_HIDE_FROM_ABI forward_list& operator=(initializer_list<value_type> __il);

Expand Down Expand Up @@ -1013,7 +1013,7 @@ template <class _Tp, class _Alloc>
inline forward_list<_Tp, _Alloc>& forward_list<_Tp, _Alloc>::operator=(forward_list&& __x) noexcept(
(__node_traits::propagate_on_container_move_assignment::value &&
is_nothrow_move_assignable<allocator_type>::value) ||
__node_traits::is_always_equal::value) {
allocator_traits<allocator_type>::is_always_equal::value) {
__move_assign(__x, integral_constant<bool, __node_traits::propagate_on_container_move_assignment::value>());
return *this;
}
Expand Down
4 changes: 2 additions & 2 deletions libcxx/include/list
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ public:
_LIBCPP_HIDE_FROM_ABI list& operator=(list&& __c) noexcept(
(__node_alloc_traits::propagate_on_container_move_assignment::value &&
is_nothrow_move_assignable<__node_allocator>::value) ||
__node_alloc_traits::is_always_equal::value);
allocator_traits<allocator_type>::is_always_equal::value);

_LIBCPP_HIDE_FROM_ABI list& operator=(initializer_list<value_type> __il) {
assign(__il.begin(), __il.end());
Expand Down Expand Up @@ -1070,7 +1070,7 @@ template <class _Tp, class _Alloc>
inline list<_Tp, _Alloc>& list<_Tp, _Alloc>::operator=(list&& __c) noexcept(
(__node_alloc_traits::propagate_on_container_move_assignment::value &&
is_nothrow_move_assignable<__node_allocator>::value) ||
__node_alloc_traits::is_always_equal::value) {
allocator_traits<allocator_type>::is_always_equal::value) {
__move_assign(__c, integral_constant<bool, __node_alloc_traits::propagate_on_container_move_assignment::value>());
return *this;
}
Expand Down

0 comments on commit b98de1a

Please sign in to comment.