List - adjusted transfer(DynamicList) and added transfer(SortableList)

This commit is contained in:
Mark Olesen
2008-11-23 16:08:28 +01:00
parent 8b72dbedbe
commit a8550cd0ba
4 changed files with 35 additions and 8 deletions

View File

@ -100,6 +100,15 @@ int main(int argc, char *argv[])
Info<< "<dlB>" << dlB << "</dlB>" << nl << "sizes: "
<< " " << dlB.size() << "/" << dlB.allocSize() << endl;
// try with a normal list:
List<label> lstA;
lstA.transfer(dlB);
Info<< "Transferred to normal list" << endl;
Info<< "<lstA>" << lstA << "</lstA>" << nl << "sizes: "
<< " " << lstA.size() << endl;
Info<< "<dlB>" << dlB << "</dlB>" << nl << "sizes: "
<< " " << dlB.size() << "/" << dlB.allocSize() << endl;
return 0;
}