Is there any standard select1st
and select2st
equivalent in C++11
?
It seems that these has been defined only in GNU CPP.
For all things that get
is defined on:
template <std::size_t N>
constexpr auto select = [] (auto&& x) noexcept -> decltype(auto) {
return std::get<N>(std::forward<decltype(x)>(x));
};
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With