mirror of https://github.com/stenzek/duckstation
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
327 B
C++
13 lines
327 B
C++
#pragma once
|
|
#include <array>
|
|
#include <type_traits>
|
|
|
|
// Source: https://gist.github.com/klmr/2775736#file-make_array-hpp
|
|
|
|
template<typename... T>
|
|
constexpr auto make_array(T&&... values)
|
|
-> std::array<typename std::decay<typename std::common_type<T...>::type>::type, sizeof...(T)>
|
|
{
|
|
return {std::forward<T>(values)...};
|
|
}
|