C++17: Keep only some members when tuple unpacking – stackoverflow.com

Let's imagine you need to call the following method: std::tuple<int, int, int> foo(); In C++17, you can call the function and unpack the tuple in a single line: auto [a, b, c] = foo(); Now, ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "C++17: Keep only some members when tuple unpacking – stackoverflow.com"