mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: add iterators to VectorSpace (#1265)
- this adds support for various STL operations including
* sorting, filling, find min/max element etc.
* for-range iteration
STYLE: use constexpr for VectorSpace rank
This commit is contained in:
committed by
Andrew Heather
parent
f3670521cd
commit
1c4e32fb6a
@ -53,8 +53,9 @@ See also
|
||||
namespace Foam
|
||||
{
|
||||
|
||||
template<class Cmpt>
|
||||
class SymmTensor;
|
||||
// Forward Declarations
|
||||
template<class Cmpt> class SymmTensor;
|
||||
|
||||
|
||||
/*---------------------------------------------------------------------------*\
|
||||
Class Tensor Declaration
|
||||
@ -75,7 +76,7 @@ public:
|
||||
// Member constants
|
||||
|
||||
//- Rank of Tensor is 2
|
||||
static const direction rank = 2;
|
||||
static constexpr direction rank = 2;
|
||||
|
||||
|
||||
// Static data members
|
||||
|
||||
Reference in New Issue
Block a user