Real CAtlArray: void RemoveAt( size_t iElement, size_t nCount = 1 );
| 699 | |
| 700 | //Real CAtlArray: void RemoveAt( size_t iElement, size_t nCount = 1 ); |
| 701 | void RemoveAt( size_t nIndex ) |
| 702 | { |
| 703 | // This is an improvement over CSimpleArray::RemoveAt suggested |
| 704 | // by Jim Springfield on the ATL discussion list |
| 705 | m_aT[nIndex].~E(); |
| 706 | if((int)nIndex != (m_nSize - 1)) |
| 707 | { |
| 708 | memmove((void*)&m_aT[nIndex], (void*)&m_aT[nIndex + 1], (m_nSize - (nIndex + 1)) * sizeof(E)); |
| 709 | } |
| 710 | m_nSize--; |
| 711 | //return TRUE; |
| 712 | } |
| 713 | |
| 714 | //Real CAtlArray: const E& operator[]( size_t iElement ) const throw(); |
| 715 | const E& operator[]( size_t iElement ) const |
no outgoing calls
no test coverage detected