dune-common
2.5.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
dune
common
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
13
#include <
dune/common/streamoperators.hh
>
14
#include <
dune/common/std/make_array.hh
>
15
16
namespace
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
make_array.hh
Dune::fill_array
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::Std::make_array
std::array< typename std::common_type< Args...>::type, sizeof...(Args)> make_array(const Args &...args)
Create and initialize an array.
Definition:
make_array.hh:23
streamoperators.hh
Implementation of stream operators for std::array and std::tuple.
Generated by
1.8.5