Dune Core Modules (2.5.0)

make_array.hh
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
7namespace Dune {
8namespace 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 namespace.
Definition: alignment.hh:11
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 12, 23:30, 2024)