MCPcopy Create free account
hub / github.com/NeuralNetworkVerification/Marabou / insertAt

Method insertAt

src/common/Vector.h:78–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76 }
77
78 void insertAt( unsigned index, T value )
79 {
80 if ( index >= size() )
81 throw CommonError( CommonError::VECTOR_OUT_OF_BOUNDS );
82
83 iterator it = _container.begin();
84
85 while ( index > 0 )
86 {
87 ++it;
88 --index;
89 }
90
91 _container.insert( it, value );
92 }
93
94 virtual void insertHead( T value )
95 {

Callers 1

unsqueezeMethod · 0.80

Calls 3

CommonErrorClass · 0.85
beginMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected