ccIndex TNSSortedCollection::insert( void *item ) { ccIndex i; if( search( keyOf(item), i ) == 0 || duplicates ) // order dependency! atInsert( i, item ); // must do Search // before calling // AtInsert return i; }
ccIndex TNSCollection::insert( void *item ) { ccIndex loc = count; atInsert( count, item ); return loc; }