ENH: Add constructor from FixedList

This commit is contained in:
laurence
2013-04-05 15:31:22 +01:00
parent 855b58e3b3
commit 8f99627cf4

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -69,6 +69,12 @@ public:
second() = s; second() = s;
} }
//- Construct from FixedList
inline Pair(const FixedList<Type, 2>& fl)
:
FixedList<Type, 2>(fl)
{}
//- Construct from Istream //- Construct from Istream
inline Pair(Istream& is) inline Pair(Istream& is)
: :