Skip to content

Instantly share code, notes, and snippets.

View coverxit's full-sized avatar
🤣
日常划水

Shindo coverxit

🤣
日常划水
View GitHub Profile
@coverxit
coverxit / array_of.hpp
Last active October 31, 2019 00:46
Alternative std::make_array
// https://stackoverflow.com/a/26351760
template <typename V, typename... T>
constexpr auto array_of(T&&... t) -> std::array<V, sizeof...(T)>
{
return { { std::forward<T>(t)... } };
}