ENH: add Ostream output for std::vector

- convenient when using data structures from other codes
This commit is contained in:
Mark Olesen
2019-04-16 18:00:20 +02:00
committed by Andrew Heather
parent 2d7c266d37
commit b3fa961991
3 changed files with 70 additions and 2 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2013 OpenFOAM Foundation
@ -40,6 +40,7 @@ Description
#include "Switch.H"
#include "fileName.H"
#include "stringList.H"
#include "stringOps.H"
using namespace Foam;
@ -132,7 +133,8 @@ int main(int argc, char *argv[])
string output(stringOps::expand(input));
Info<< "input: " << input << nl
<< "expand: " << output << nl << nl;
<< "expand: " << output << nl
<< "split: " << stringOps::split(output, "/") << nl << nl;
}
}