AMDiS 2.10
The Adaptive Multi-Dimensional Simulation Toolbox
FlatVector.hpp
1#pragma once
2
3#include <vector>
4
5namespace AMDiS
6{
8 template <class T, class Allocator = std::allocator<T>>
10 : public std::vector<T,Allocator>
11 {
12 public:
13 using std::vector<T,Allocator>::vector;
14
17 {
18 this->assign(this->size(), s);
19 return *this;
20 }
21 };
22
23} // end namespace AMDiS
Flat data vector to be used in assembling as element vector.
Definition: FlatVector.hpp:11
FlatVector & operator=(T s)
Assign value s to all entries of the vector.
Definition: FlatVector.hpp:16