Standard select1st and select2nd

Are there any C++11standard equivalents select1stand select2st?
It seems that they were defined only in the GNU CPP .

+5
source share
1 answer

For all things that are getdetermined by:

template <std::size_t N>
constexpr auto select = [] (auto&& x) noexcept -> decltype(auto) {
  return std::get<N>(std::forward<decltype(x)>(x));
};
+9
source

All Articles