PackedList: Make iteratorBase copy constructor public
This allows an iterator to be stored and used in the same way as a non-const reference to an element of a non-packed list
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -441,7 +441,7 @@ public:
|
||||
inline bool set(unsigned int);
|
||||
|
||||
|
||||
// Constructors
|
||||
// Protected Constructors
|
||||
|
||||
//- Construct null
|
||||
inline iteratorBase();
|
||||
@ -449,12 +449,15 @@ public:
|
||||
//- Construct from base list and position index
|
||||
inline iteratorBase(const PackedList*, const label);
|
||||
|
||||
|
||||
public:
|
||||
|
||||
// Constructors
|
||||
|
||||
//- Default copy constructor
|
||||
iteratorBase(const iteratorBase&) = default;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
// Member Functions
|
||||
|
||||
//- Return the element index corresponding to the iterator
|
||||
|
||||
Reference in New Issue
Block a user