25 template <
class T,
size_t N >
26 inline std::ostream&
operator<< (std::ostream& s,
const array<T,N>& e)
35 for (
size_t i=0; i<N-1; i++) s << e[i] <<
",";
43 array<T, 1> result = { {t0} };
48 array<T, 2>
make_array(
const T &t0,
const T &t1) {
49 array<T, 2> result = { {t0, t1} };
54 array<T, 3>
make_array(
const T &t0,
const T &t1,
const T &t2) {
55 array<T, 3> result = { {t0, t1, t2} };
60 array<T, 4>
make_array(
const T &t0,
const T &t1,
const T &t2,
const T &t3) {
61 array<T, 4> result = { {t0, t1, t2, t3} };
66 array<T, 5>
make_array(
const T &t0,
const T &t1,
const T &t2,
const T &t3,
69 array<T, 5> result = { {t0, t1, t2, t3, t4} };
74 array<T, 6>
make_array(
const T &t0,
const T &t1,
const T &t2,
const T &t3,
75 const T &t4,
const T &t5)
77 array<T, 6> result = { {t0, t1, t2, t3, t4, t5} };
82 array<T, 7>
make_array(
const T &t0,
const T &t1,
const T &t2,
const T &t3,
83 const T &t4,
const T &t5,
const T &t6)
85 array<T, 7> result = { {t0, t1, t2, t3, t4, t5, t6} };
90 array<T, 8>
make_array(
const T &t0,
const T &t1,
const T &t2,
const T &t3,
91 const T &t4,
const T &t5,
const T &t6,
const T &t7)
93 array<T, 8> result = { {t0, t1, t2, t3, t4, t5, t6, t7} };
98 array<T, 9>
make_array(
const T &t0,
const T &t1,
const T &t2,
const T &t3,
99 const T &t4,
const T &t5,
const T &t6,
const T &t7,
102 array<T, 9> result = { {t0, t1, t2, t3, t4, t5, t6, t7, t8} };
115 array<T, 10>
make_array(
const T &t0,
const T &t1,
const T &t2,
const T &t3,
116 const T &t4,
const T &t5,
const T &t6,
const T &t7,
117 const T &t8,
const T &t9)
119 array<T, 10> result = { {t0, t1, t2, t3, t4, t5, t6, t7, t8, t9} };
127 template<
typename T, std::
size_t n>
array< T, 10 > make_array(const T &t0, const T &t1, const T &t2, const T &t3, const T &t4, const T &t5, const T &t6, const T &t7, const T &t8, const T &t9)
create an initialize an array
Definition: array.hh:115
array< T, n > fill_array(const T &t)
Create an array and fill it with copies of the provided value.
Definition: array.hh:128
std::ostream & operator<<(std::ostream &s, const array< T, N > &e)
Output operator for array.
Definition: array.hh:26
Dune namespace.
Definition: alignment.hh:10