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:
Mark Olesen
2019-04-04 17:14:27 +02:00
committed by Andrew Heather
parent f3670521cd
commit 1c4e32fb6a
17 changed files with 201 additions and 106 deletions

View File

@ -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