Lines Matching refs:__end_
48 …t_buffer allocates a contiguous chunk of memory and stores objects in the range [__begin_, __end_).
49 // It has uninitialized memory in the ranges [__first_, __begin_) and [__end_, __end_cap_.first())…
70 pointer __end_;
81 …: __first_(nullptr), __begin_(nullptr), __end_(nullptr), __end_cap_(nullptr, __default_init_tag())…
84 : __first_(nullptr), __begin_(nullptr), __end_(nullptr), __end_cap_(nullptr, __a) {}
87 : __first_(nullptr), __begin_(nullptr), __end_(nullptr), __end_cap_(nullptr, __a) {}
117 _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI iterator end() _NOEXCEPT { return __end_; }
118 …CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI const_iterator end() const _NOEXCEPT { return __end_; }
123 return static_cast<size_type>(__end_ - __begin_);
126 …_LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI bool empty() const { return __end_ == __begin_…
137 return static_cast<size_type>(__end_cap() - __end_);
142 _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI reference back() { return *(__end_ - 1); }
143 …_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI const_reference back() const { return *(__end_ - 1); }
156 …_LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI void pop_back() { __destruct_at_end(__end_ - 1…
207 __end_(*__p + __n),
213 const pointer __end_;
225 if (__end_ != nullptr)
232 if (__end_ < __begin_)
234 if (__end_cap() < __end_)
240 // Default constructs __n objects starting at __end_
247 _ConstructTransaction __tx(&this->__end_, __n);
248 for (; __tx.__pos_ != __tx.__end_; ++__tx.__pos_) {
253 // Copy constructs __n objects starting at __end_ from __x
262 _ConstructTransaction __tx(&this->__end_, __n);
263 for (; __tx.__pos_ != __tx.__end_; ++__tx.__pos_) {
281 if (__end_ == __end_cap()) {
285 for (pointer __p = __begin_; __p != __end_; ++__p, (void)++__buf.__end_)
286 … __alloc_traits::construct(__buf.__alloc(), std::__to_address(__buf.__end_), std::move(*__p));
289 __alloc_traits::construct(__a, std::__to_address(this->__end_), *__first);
290 ++this->__end_;
304 _ConstructTransaction __tx(&this->__end_, __n);
305 for (; __tx.__pos_ != __tx.__end_; ++__tx.__pos_, (void)++__first) {
326 while (__new_last != __end_)
327 __alloc_traits::destroy(__alloc(), std::__to_address(--__end_));
333 __end_ = __new_last;
347 __begin_ = __end_ = __first_ + __start;
363 __end_(std::move(__c.__end_)),
367 __c.__end_ = nullptr;
378 __end_ = __c.__end_;
382 __c.__end_ = nullptr;
387 __begin_ = __end_ = __first_;
404 __end_ = __c.__end_;
407 __c.__first_ = __c.__begin_ = __c.__end_ = __c.__end_cap() = nullptr;
416 std::swap(__end_, __x.__end_);
425 __t.__construct_at_end(move_iterator<pointer>(__begin_), move_iterator<pointer>(__end_));
428 std::swap(__end_, __t.__end_);
440 __t.__construct_at_end(move_iterator<pointer>(__begin_), move_iterator<pointer>(__end_));
441 __t.__end_ = __t.__begin_ + (__end_ - __begin_);
444 std::swap(__end_, __t.__end_);
456 if (__end_ < __end_cap()) {
457 difference_type __d = __end_cap() - __end_;
459 __begin_ = std::move_backward(__begin_, __end_, __end_ + __d);
460 __end_ += __d;
464 __t.__construct_at_end(move_iterator<pointer>(__begin_), move_iterator<pointer>(__end_));
467 std::swap(__end_, __t.__end_);
478 if (__end_ < __end_cap()) {
479 difference_type __d = __end_cap() - __end_;
481 __begin_ = std::move_backward(__begin_, __end_, __end_ + __d);
482 __end_ += __d;
486 __t.__construct_at_end(move_iterator<pointer>(__begin_), move_iterator<pointer>(__end_));
489 std::swap(__end_, __t.__end_);
500 if (__end_ == __end_cap()) {
504 __end_ = std::move(__begin_, __end_, __begin_ - __d);
509 __t.__construct_at_end(move_iterator<pointer>(__begin_), move_iterator<pointer>(__end_));
512 std::swap(__end_, __t.__end_);
516 __alloc_traits::construct(__alloc(), std::__to_address(__end_), __x);
517 ++__end_;
522 if (__end_ == __end_cap()) {
526 __end_ = std::move(__begin_, __end_, __begin_ - __d);
531 __t.__construct_at_end(move_iterator<pointer>(__begin_), move_iterator<pointer>(__end_));
534 std::swap(__end_, __t.__end_);
538 __alloc_traits::construct(__alloc(), std::__to_address(__end_), std::move(__x));
539 ++__end_;
545 if (__end_ == __end_cap()) {
549 __end_ = std::move(__begin_, __end_, __begin_ - __d);
554 __t.__construct_at_end(move_iterator<pointer>(__begin_), move_iterator<pointer>(__end_));
557 std::swap(__end_, __t.__end_);
561 __alloc_traits::construct(__alloc(), std::__to_address(__end_), std::forward<_Args>(__args)...);
562 ++__end_;