33__split_buffer.patch 1.0 KB

123456789101112131415161718192021222324252627
  1. diff --git a/include/__split_buffer b/include/__split_buffer
  2. index da73f4c..7131932 100644
  3. --- a/include/__split_buffer
  4. +++ b/include/__split_buffer
  5. @@ -156,7 +156,7 @@ public:
  6. _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI void pop_front() { __destruct_at_begin(__begin_ + 1); }
  7. _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI void pop_back() { __destruct_at_end(__end_ - 1); }
  8. -
  9. + void __uninitialized_at_end(size_type __n);
  10. _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI void __construct_at_end(size_type __n);
  11. _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI void __construct_at_end(size_type __n, const_reference __x);
  12. @@ -246,6 +246,13 @@ __split_buffer<_Tp, _Allocator>::__invariants() const
  13. return true;
  14. }
  15. +template <class _Tp, class _Allocator>
  16. +void
  17. +__split_buffer<_Tp, _Allocator>::__uninitialized_at_end(size_type __n)
  18. +{
  19. + this->__end_ += __n;
  20. +}
  21. +
  22. // Default constructs __n objects starting at __end_
  23. // throws if construction throws
  24. // Precondition: __n > 0