vector(const vector& __x)
: _Base(_Bit_alloc_traits::_S_select_on_copy(__x._M_get_Bit_allocator()))
{
+ const_iterator __xbegin = __x.begin(), __xend = __x.end();
_M_initialize(__x.size());
- _M_copy_aligned(__x.begin(), __x.end(), begin());
+ _M_copy_aligned(__xbegin, __xend, begin());
}
#if __cplusplus >= 201103L
{
const size_type __len =
_M_check_len(__n, "vector<bool>::_M_insert_range");
+ const iterator __begin = begin(), __end = end();
_Bit_pointer __q = this->_M_allocate(__len);
iterator __start(std::__addressof(*__q), 0);
- iterator __i = _M_copy_aligned(begin(), __position, __start);
+ iterator __i = _M_copy_aligned(__begin, __position, __start);
__i = std::copy(__first, __last, __i);
- iterator __finish = std::copy(__position, end(), __i);
+ iterator __finish = std::copy(__position, __end, __i);
this->_M_deallocate();
this->_M_impl._M_end_of_storage = __q + _S_nword(__len);
this->_M_impl._M_start = __start;