ENH: use std algorithms for copy/move/compare within List containers

ENH: add List resize_fill variant. Fuses resize_nocopy + uniform fill

COMP: avoid cast ambiguity when assigning Foam::zero to UList<char>
This commit is contained in:
Mark Olesen
2023-08-04 16:46:12 +02:00
parent eeb9d144e3
commit 2422e6f061
23 changed files with 397 additions and 466 deletions

View File

@ -79,6 +79,13 @@ int main(int argc, char *argv[])
List<char> alphabet(istr);
Info<< "re-read: " << alphabet << nl;
// Can assign zero?
//Fails: alphabet = char(Zero);
alphabet = Foam::zero{};
// alphabet = '@';
Info<< "blanked: " << alphabet << nl;
}
return 0;