reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

usr/include/c++/7.4.0/bits/stl_vector.h
  116       { return *static_cast<_Tp_alloc_type*>(&this->_M_impl); }
  120       { return *static_cast<const _Tp_alloc_type*>(&this->_M_impl); }
  146       { this->_M_impl._M_swap_data(__x._M_impl); }
  146       { this->_M_impl._M_swap_data(__x._M_impl); }
  162       { _M_deallocate(this->_M_impl._M_start, this->_M_impl._M_end_of_storage
  162       { _M_deallocate(this->_M_impl._M_start, this->_M_impl._M_end_of_storage
  163 		      - this->_M_impl._M_start); }
  172 	return __n != 0 ? _Tr::allocate(_M_impl, __n) : pointer();
  180 	  _Tr::deallocate(_M_impl, __p, __n);
  187 	this->_M_impl._M_start = this->_M_allocate(__n);
  188 	this->_M_impl._M_finish = this->_M_impl._M_start;
  188 	this->_M_impl._M_finish = this->_M_impl._M_start;
  189 	this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n;
  189 	this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n;
  330 	this->_M_impl._M_finish =
  332 				      this->_M_impl._M_start,
  434       { std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
  434       { std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
  564       { return iterator(this->_M_impl._M_start); }
  573       { return const_iterator(this->_M_impl._M_start); }
  582       { return iterator(this->_M_impl._M_finish); }
  591       { return const_iterator(this->_M_impl._M_finish); }
  637       { return const_iterator(this->_M_impl._M_start); }
  646       { return const_iterator(this->_M_impl._M_finish); }
  671       { return size_type(this->_M_impl._M_finish - this->_M_impl._M_start); }
  671       { return size_type(this->_M_impl._M_finish - this->_M_impl._M_start); }
  694 	  _M_erase_at_end(this->_M_impl._M_start + __new_size);
  714 	  _M_erase_at_end(this->_M_impl._M_start + __new_size);
  751       { return size_type(this->_M_impl._M_end_of_storage
  752 			 - this->_M_impl._M_start); }
  798 	return *(this->_M_impl._M_start + __n);
  816 	return *(this->_M_impl._M_start + __n);
  921       { return _M_data_ptr(this->_M_impl._M_start); }
  925       { return _M_data_ptr(this->_M_impl._M_start); }
  941 	if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage)
  941 	if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage)
  943 	    _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish,
  943 	    _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish,
  945 	    ++this->_M_impl._M_finish;
  978 	--this->_M_impl._M_finish;
  979 	_Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish);
  979 	_Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish);
 1235 	this->_M_impl._M_swap_data(__x._M_impl);
 1235 	this->_M_impl._M_swap_data(__x._M_impl);
 1248       { _M_erase_at_end(this->_M_impl._M_start); }
 1328 	  this->_M_impl._M_start = this->_M_allocate(__n);
 1329 	  this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n;
 1329 	  this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n;
 1330 	  this->_M_impl._M_finish =
 1332 					this->_M_impl._M_start,
 1341 	this->_M_impl._M_finish =
 1342 	  std::__uninitialized_fill_n_a(this->_M_impl._M_start, __n, __value,
 1351 	this->_M_impl._M_finish =
 1352 	  std::__uninitialized_default_n_a(this->_M_impl._M_start, __n,
 1457 	    _Alloc_traits::construct(_M_this->_M_impl, _M_ptr(),
 1462 	{ _Alloc_traits::destroy(_M_this->_M_impl, _M_ptr()); }
 1518 	std::_Destroy(__pos, this->_M_impl._M_finish, _M_get_Tp_allocator());
 1519 	this->_M_impl._M_finish = __pos;
 1537 	this->_M_impl._M_swap_data(__tmp._M_impl);
 1537 	this->_M_impl._M_swap_data(__tmp._M_impl);
 1538 	this->_M_impl._M_swap_data(__x._M_impl);
 1538 	this->_M_impl._M_swap_data(__x._M_impl);
usr/include/c++/7.4.0/bits/vector.tcc
   74 	    _GLIBCXX_MAKE_MOVE_IF_NOEXCEPT_ITERATOR(this->_M_impl._M_start),
   75 	    _GLIBCXX_MAKE_MOVE_IF_NOEXCEPT_ITERATOR(this->_M_impl._M_finish));
   76 	  std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
   76 	  std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
   78 	  _M_deallocate(this->_M_impl._M_start,
   79 			this->_M_impl._M_end_of_storage
   80 			- this->_M_impl._M_start);
   81 	  this->_M_impl._M_start = __tmp;
   82 	  this->_M_impl._M_finish = __tmp + __old_size;
   83 	  this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n;
   83 	  this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n;
   98 	if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage)
   98 	if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage)
  100 	    _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish,
  100 	    _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish,
  102 	    ++this->_M_impl._M_finish;
  122       if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage)
  122       if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage)
  125 	    _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish,
  125 	    _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish,
  127 	    ++this->_M_impl._M_finish;
  148       return iterator(this->_M_impl._M_start + __n);
  158       --this->_M_impl._M_finish;
  159       _Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish);
  159       _Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish);
  192 		  _M_deallocate(this->_M_impl._M_start,
  193 				this->_M_impl._M_end_of_storage
  194 				- this->_M_impl._M_start);
  195 		  this->_M_impl._M_start = nullptr;
  196 		  this->_M_impl._M_finish = nullptr;
  197 		  this->_M_impl._M_end_of_storage = nullptr;
  208 	      std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
  208 	      std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
  210 	      _M_deallocate(this->_M_impl._M_start,
  211 			    this->_M_impl._M_end_of_storage
  212 			    - this->_M_impl._M_start);
  213 	      this->_M_impl._M_start = __tmp;
  214 	      this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __xlen;
  214 	      this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __xlen;
  223 	      std::copy(__x._M_impl._M_start, __x._M_impl._M_start + size(),
  223 	      std::copy(__x._M_impl._M_start, __x._M_impl._M_start + size(),
  224 			this->_M_impl._M_start);
  225 	      std::__uninitialized_copy_a(__x._M_impl._M_start + size(),
  226 					  __x._M_impl._M_finish,
  227 					  this->_M_impl._M_finish,
  230 	  this->_M_impl._M_finish = this->_M_impl._M_start + __xlen;
  230 	  this->_M_impl._M_finish = this->_M_impl._M_start + __xlen;
  243 	  __tmp._M_impl._M_swap_data(this->_M_impl);
  243 	  __tmp._M_impl._M_swap_data(this->_M_impl);
  248 	  this->_M_impl._M_finish =
  249 	    std::__uninitialized_fill_n_a(this->_M_impl._M_finish,
  254         _M_erase_at_end(std::fill_n(this->_M_impl._M_start, __n, __val));
  287 	    std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
  287 	    std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
  289 	    _M_deallocate(this->_M_impl._M_start,
  290 			  this->_M_impl._M_end_of_storage
  291 			  - this->_M_impl._M_start);
  292 	    this->_M_impl._M_start = __tmp;
  293 	    this->_M_impl._M_finish = this->_M_impl._M_start + __len;
  293 	    this->_M_impl._M_finish = this->_M_impl._M_start + __len;
  294 	    this->_M_impl._M_end_of_storage = this->_M_impl._M_finish;
  294 	    this->_M_impl._M_end_of_storage = this->_M_impl._M_finish;
  297 	  _M_erase_at_end(std::copy(__first, __last, this->_M_impl._M_start));
  302 	    std::copy(__first, __mid, this->_M_impl._M_start);
  303 	    this->_M_impl._M_finish =
  305 					  this->_M_impl._M_finish,
  317       if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage)
  317       if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage)
  320 	    _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish,
  320 	    _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish,
  322 	    ++this->_M_impl._M_finish;
  329       return iterator(this->_M_impl._M_start + __n);
  340 	if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage)
  340 	if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage)
  343 	      _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish,
  343 	      _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish,
  345 	      ++this->_M_impl._M_finish;
  358 	return iterator(this->_M_impl._M_start + __n);
  373       _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish,
  373       _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish,
  374 			       _GLIBCXX_MOVE(*(this->_M_impl._M_finish
  376       ++this->_M_impl._M_finish;
  381 			      this->_M_impl._M_finish - 2,
  382 			      this->_M_impl._M_finish - 1);
  415 	  _Alloc_traits::construct(this->_M_impl,
  426 	    (this->_M_impl._M_start, __position.base(),
  433 	    (__position.base(), this->_M_impl._M_finish,
  439 	    _Alloc_traits::destroy(this->_M_impl,
  446       std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
  446       std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
  448       _M_deallocate(this->_M_impl._M_start,
  449 		    this->_M_impl._M_end_of_storage
  450 		    - this->_M_impl._M_start);
  451       this->_M_impl._M_start = __new_start;
  452       this->_M_impl._M_finish = __new_finish;
  453       this->_M_impl._M_end_of_storage = __new_start + __len;
  463 	  if (size_type(this->_M_impl._M_end_of_storage
  464 			- this->_M_impl._M_finish) >= __n)
  473 	      pointer __old_finish(this->_M_impl._M_finish);
  476 		  std::__uninitialized_move_a(this->_M_impl._M_finish - __n,
  477 					      this->_M_impl._M_finish,
  478 					      this->_M_impl._M_finish,
  480 		  this->_M_impl._M_finish += __n;
  488 		  this->_M_impl._M_finish =
  489 		    std::__uninitialized_fill_n_a(this->_M_impl._M_finish,
  494 					      this->_M_impl._M_finish,
  496 		  this->_M_impl._M_finish += __elems_after;
  517 		    (this->_M_impl._M_start, __position.base(),
  524 		    (__position.base(), this->_M_impl._M_finish,
  539 	      std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
  539 	      std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
  541 	      _M_deallocate(this->_M_impl._M_start,
  542 			    this->_M_impl._M_end_of_storage
  543 			    - this->_M_impl._M_start);
  544 	      this->_M_impl._M_start = __new_start;
  545 	      this->_M_impl._M_finish = __new_finish;
  546 	      this->_M_impl._M_end_of_storage = __new_start + __len;
  559 	  if (size_type(this->_M_impl._M_end_of_storage
  560 			- this->_M_impl._M_finish) >= __n)
  562 	      this->_M_impl._M_finish =
  563 		std::__uninitialized_default_n_a(this->_M_impl._M_finish,
  579 		      this->_M_impl._M_start, this->_M_impl._M_finish,
  579 		      this->_M_impl._M_start, this->_M_impl._M_finish,
  590 	      std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
  590 	      std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
  592 	      _M_deallocate(this->_M_impl._M_start,
  593 			    this->_M_impl._M_end_of_storage
  594 			    - this->_M_impl._M_start);
  595 	      this->_M_impl._M_start = __new_start;
  596 	      this->_M_impl._M_finish = __new_start + __size + __n;
  597 	      this->_M_impl._M_end_of_storage = __new_start + __len;
  637 	    if (size_type(this->_M_impl._M_end_of_storage
  638 			  - this->_M_impl._M_finish) >= __n)
  641 		pointer __old_finish(this->_M_impl._M_finish);
  644 		    std::__uninitialized_move_a(this->_M_impl._M_finish - __n,
  645 						this->_M_impl._M_finish,
  646 						this->_M_impl._M_finish,
  648 		    this->_M_impl._M_finish += __n;
  658 						this->_M_impl._M_finish,
  660 		    this->_M_impl._M_finish += __n - __elems_after;
  663 						this->_M_impl._M_finish,
  665 		    this->_M_impl._M_finish += __elems_after;
  679 		      (this->_M_impl._M_start, __position.base(),
  687 		      (__position.base(), this->_M_impl._M_finish,
  697 		std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
  697 		std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
  699 		_M_deallocate(this->_M_impl._M_start,
  700 			      this->_M_impl._M_end_of_storage
  701 			      - this->_M_impl._M_start);
  702 		this->_M_impl._M_start = __new_start;
  703 		this->_M_impl._M_finish = __new_finish;
  704 		this->_M_impl._M_end_of_storage = __new_start + __len;