MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / RemoveAt

Method RemoveAt

Libraries/TabbingFramework/CustomTabCtrl.h:701–712  ·  view source on GitHub ↗

Real CAtlArray: void RemoveAt( size_t iElement, size_t nCount = 1 );

Source from the content-addressed store, hash-verified

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

Callers 5

RemoveMethod · 0.80
MoveItemFunction · 0.80
DeleteItemFunction · 0.80
ExpandMethod · 0.80
ProcessCommandlineMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected