← Back to team overview

dolfin team mailing list archive

Re: MeshEntities and STL containers

 

On Tue, Sep 29, 2009 at 06:44:49PM +0100, Garth N. Wells wrote:
> Is it safe to insert MeshEntities into STL containers, e.g.
>
>    std::vector<Cell*>
>    std::vector<Cell*>

Yes, but it doesn't make much sense. A Cell is just a reference to a
Mesh, the dimension of the mesh and an index, so you would be storing
a lot of extra data.

--
Anders

Attachment: signature.asc
Description: Digital signature


References