We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://stackoverflow.com/questions/10604794/how-do-you-convert-a-homogeneous-stdtuple-to-a-stdarray
The text was updated successfully, but these errors were encountered:
std::applyを用いる。
std::apply
Sorry, something went wrong.
関数の定義:
template<typename TUPLE> constexpr auto to_array(TUPLE && tuple) { constexpr auto make_array = [](auto&& ... x) { return std::array{std::forward<decltype(x)>(x) ... }; }; return std::apply(make_array, std::forward<TUPLE>(tuple)); }
t-sakashita
No branches or pull requests
https://stackoverflow.com/questions/10604794/how-do-you-convert-a-homogeneous-stdtuple-to-a-stdarray
The text was updated successfully, but these errors were encountered: