src/gsim/se_dcdt_elements.cpp
// this could be optimized but we are usually dealing with only 1-2 ids per array
this could be optimized but we are usually dealing with only 1-2 ids per array
this could be optimized but we are usually dealing with only 1 - 2 ids per array
inline void insertIfNotThere ( GsArray<int>& a, int id )
 {
   for ( int i=0; i<a.size(); i++ ) { if ( a[i]==id ) return; }
   a.push() = id;
 }
inline void insertIfNotThere ( GsArray < int > & a , int id ) { for ( int i = 0 ; i < a . size ( ) ; i ++ ) { if ( a [ i ] == id ) return ; } a . push ( ) = id ; }
this could be optimized but we are usually dealing with only 1-2 ids per array
this could be optimized but we are usually dealing with only 1 - 2 ids per array