Skip to content
Snippets Groups Projects
Commit 904884fc authored by Dr. Felix Tobias Schindler's avatar Dr. Felix Tobias Schindler
Browse files

[la.container.vector-interface] add set_all()

parent c4232a54
No related branches found
No related tags found
No related merge requests found
......@@ -112,6 +112,12 @@ public:
/// \note Those marked as virtual may be implemented more efficiently in a derived class!
/// \{
virtual void set_all(const ScalarType& val)
{
for (auto& element : *this)
element = val;
}
virtual bool valid() const
{
for (const auto& val : *this) {
......
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