Doxygen

void __BVECTOR_QUALIFIED::_M_insert_aux ( iterator  __position,
bool  __x 
) [inline, protected]

Definition at line 396 of file _bvector.h.

Referenced by insert(), and push_back().

                                                    {
    if (this->_M_finish._M_p != this->_M_end_of_storage._M_data) {
      _STLP_PRIV __copy_backward(__position, this->_M_finish, this->_M_finish + 1,
                                 random_access_iterator_tag(), (difference_type*)0 );
      *__position = __x;
      ++this->_M_finish;
    }
    else {
      size_type __len = size() ? 2 * size() : _STLP_WORD_BIT;
      __chunk_type* __q = this->_M_bit_alloc(__len);
      iterator __i = _STLP_STD::copy(begin(), __position, iterator(__q, 0));
      *__i++ = __x;
      this->_M_finish = _STLP_STD::copy(__position, end(), __i);
      this->_M_deallocate();
      this->_M_end_of_storage._M_data = __q + _Base::_M_bits_to_chunks(__len);
      this->_M_start = iterator(__q, 0);
    }
  }