35-set-map.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. diff --git a/include/map b/include/map
  2. index 17bb715..77f2068 100644
  3. --- a/include/map
  4. +++ b/include/map
  5. @@ -1456,7 +1456,7 @@ public:
  6. _LIBCPP_INLINE_VISIBILITY
  7. iterator erase(const_iterator __f, const_iterator __l)
  8. {return __tree_.erase(__f.__i_, __l.__i_);}
  9. - _LIBCPP_INLINE_VISIBILITY
  10. + _LIBCPP_REINITIALIZES_OBJECT _LIBCPP_INLINE_VISIBILITY
  11. void clear() _NOEXCEPT {__tree_.clear();}
  12. #if _LIBCPP_STD_VER >= 17
  13. @@ -2253,7 +2253,7 @@ public:
  14. }
  15. #endif
  16. - _LIBCPP_INLINE_VISIBILITY
  17. + _LIBCPP_REINITIALIZES_OBJECT _LIBCPP_INLINE_VISIBILITY
  18. void clear() _NOEXCEPT {__tree_.clear();}
  19. _LIBCPP_INLINE_VISIBILITY
  20. diff --git a/include/set b/include/set
  21. index 75be1e1..3422d43 100644
  22. --- a/include/set
  23. +++ b/include/set
  24. @@ -839,7 +839,7 @@ public:
  25. _LIBCPP_INLINE_VISIBILITY
  26. iterator erase(const_iterator __f, const_iterator __l)
  27. {return __tree_.erase(__f, __l);}
  28. - _LIBCPP_INLINE_VISIBILITY
  29. + _LIBCPP_REINITIALIZES_OBJECT _LIBCPP_INLINE_VISIBILITY
  30. void clear() _NOEXCEPT {__tree_.clear();}
  31. #if _LIBCPP_STD_VER >= 17
  32. @@ -1429,7 +1429,7 @@ public:
  33. _LIBCPP_INLINE_VISIBILITY
  34. iterator erase(const_iterator __f, const_iterator __l)
  35. {return __tree_.erase(__f, __l);}
  36. - _LIBCPP_INLINE_VISIBILITY
  37. + _LIBCPP_REINITIALIZES_OBJECT _LIBCPP_INLINE_VISIBILITY
  38. void clear() _NOEXCEPT {__tree_.clear();}
  39. #if _LIBCPP_STD_VER >= 17