AMDiS  0.1
The Adaptive Multi-Dimensional Simulation Toolbox
FlatVector.hpp
1 #pragma once
2 
3 #include <vector>
4 
5 namespace AMDiS
6 {
8  template <class T, class Allocator = std::allocator<T>>
9  class FlatVector
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:9
Contains all classes needed for solving linear and non linear equation systems.
Definition: AdaptBase.hpp:6
FlatVector & operator=(T s)
Assign value s to all entries of the vector.
Definition: FlatVector.hpp:16