MCPcopy Create free account
hub / github.com/Geant4/geant4 / removeAt

Method removeAt

source/processes/management/src/G4ProcessVector.cc:143–150  ·  view source on GitHub ↗

--------------------------------------------------------------------

Source from the content-addressed store, hash-verified

141// --------------------------------------------------------------------
142//
143G4VProcess* G4ProcessVector::removeAt(G4int i)
144{
145 auto it=pProcVector->cbegin();
146 for(std::size_t j=0; j<pProcVector->size() && G4int(j)<i; ++j) ++it;
147 G4VProcess* rValue = *it;
148 pProcVector->erase(it);
149 return rValue;
150}

Callers 4

RemoveAtMethod · 0.80
RemoveProcessMethod · 0.80

Calls 2

cbeginMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected