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
std
make_array.hh
Go to the documentation of this file.
1
#ifndef DUNE_COMMON_STD_MAKE_ARRAY_HH
2
#define DUNE_COMMON_STD_MAKE_ARRAY_HH
3
4
#include <array>
5
#include <type_traits>
6
7
namespace
Dune {
8
namespace
Std {
10
21
template
<
typename
... Args>
22
std::array<
typename
std::common_type<Args...>::type,
sizeof
...(Args)>
23
make_array
(
const
Args&... args) {
24
std::array<
typename
std::common_type<Args...>::type,
sizeof
...(Args)>
25
result = {{args...}};
26
return
result;
27
}
28
}
29
}
30
31
#endif
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
Generated by
1.8.5