Skip to content
Snippets Groups Projects
Commit 68e5cdd1 authored by Oliver Sander's avatar Oliver Sander
Browse files

implement method assign(const &T) for our replacement stl 'array' class

[[Imported from SVN: r5010]]
parent 3efbf2bb
No related branches found
No related tags found
No related merge requests found
......@@ -91,6 +91,12 @@ namespace Dune
return (*this);
}
//! \brief Assign value to all entries
void assign(const T& t)
{
for (int i=0; i<N; i++) a[i]=t;
}
//! Component access
reference operator[] (size_type i)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment