Dune Core Modules (2.5.0)

array.hh
Go to the documentation of this file.
1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2// vi: set et ts=4 sw=2 sts=2:
3
4#ifndef DUNE_ARRAY_HH
5#define DUNE_ARRAY_HH
6
11#include <array>
12
14#include <dune/common/std/make_array.hh>
15
16namespace Dune
17{
23 // pull in default implementation
24 using std::array;
25
26 using Dune::Std::make_array;
27
29
32 template<typename T, std::size_t n>
33 std::array<T,n> fill_array(const T& t)
34 {
35 std::array<T,n> r;
36 r.fill(t);
37 return r;
38 }
39
42} // end namespace Dune
43
44#endif
std::array< T, n > fill_array(const T &t)
Create an array and fill it with copies of the provided value.
Definition: array.hh:33
Dune namespace.
Definition: alignment.hh:11
Implementation of stream operators for std::array and std::tuple.
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 23, 23:29, 2024)