MCPcopy Create free account
hub / github.com/DragonJoker/RenderGraph / sortLines

Function sortLines

test/BaseTest.cpp:336–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334 }
335
336 std::string sortLines( std::string const & value )
337 {
338 std::stringstream stream{ value };
339 std::multiset< std::string, std::less<> > sorted;
340 std::string line;
341
342 while ( std::getline( stream, line ) )
343 {
344 sorted.insert( line );
345 }
346
347 std::stringstream result;
348
349 for ( auto & v : sorted )
350 {
351 result << v << std::endl;
352 }
353
354 return result.str();
355 }
356
357 //*********************************************************************************************
358}

Callers

nothing calls this directly

Calls 1

insertMethod · 0.80

Tested by

no test coverage detected