MCPcopy Create free account
hub / github.com/boostorg/build / list_unique

Function list_unique

v2/engine/lists.c:350–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348
349
350LIST * list_unique( LIST * sorted_list )
351{
352 LIST * result = L0;
353 OBJECT * last_added = 0;
354
355 LISTITER iter = list_begin( sorted_list ), end = list_end( sorted_list );
356 for ( ; iter != end; iter = list_next( iter ) )
357 {
358 if ( !last_added || !object_equal( list_item( iter ), last_added ) )
359 {
360 result = list_push_back( result, object_copy( list_item( iter ) ) );
361 last_added = list_item( iter );
362 }
363 }
364 return result;
365}
366
367void list_done()
368{

Callers 1

property_set_createFunction · 0.85

Calls 5

list_beginFunction · 0.85
list_endFunction · 0.85
object_equalFunction · 0.85
list_push_backFunction · 0.85
object_copyFunction · 0.85

Tested by

no test coverage detected