Commit 24724433 authored by Oliver Sander's avatar Oliver Sander

Use std::fill, instead of writing it ourselves

parent bb9fb4f1
......@@ -111,7 +111,7 @@ namespace Dune {
//! Constructor making vector with identical coordinates
explicit FieldVector (const K& t)
{
fill(t);
std::fill(_data.begin(),_data.end(),t);
}
//! Copy constructor
......@@ -167,11 +167,6 @@ namespace Dune {
DUNE_ASSERT_BOUNDS(i < SIZE);
return _data[i];
}
private:
void fill(const K& t)
{
for (int i=0; i<SIZE; i++) _data[i]=t;
}
};
/** \brief Read a FieldVector from an input stream
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment