Skip to content
Snippets Groups Projects
Commit 22829241 authored by Martin Nolte's avatar Martin Nolte
Browse files

add begin / end methods to Dune::array

[[Imported from SVN: r5566]]
parent 19777849
Branches
Tags
No related merge requests found
......@@ -99,6 +99,26 @@ namespace Dune
return a[i];
}
iterator begin ()
{
return a;
}
const_iterator begin () const
{
return a;
}
iterator end ()
{
return a + N;
}
const_iterator end () const
{
return a + N;
}
protected:
T a[(N > 0) ? N : 1];
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment