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

Function list_reverse

src/engine/lists.cpp:264–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262}
263
264LIST * list_reverse( LIST * l )
265{
266 int32_t size = list_length( l );
267 if ( size == 0 ) return L0;
268 {
269 LIST * const result = list_alloc( size );
270 int32_t i;
271 result->impl.size = size;
272 for ( i = 0; i < size; ++i )
273 list_begin( result )[ i ] = object_copy( list_begin( l )[ size - i -
274 1 ] );
275 return result;
276 }
277}
278
279int32_t list_cmp( LIST * t, LIST * s )
280{

Callers 1

function_runFunction · 0.85

Calls 4

list_lengthFunction · 0.85
list_allocFunction · 0.85
list_beginFunction · 0.85
object_copyFunction · 0.85

Tested by

no test coverage detected