I am looking for a C ++ link and I see
template <size_t I, class... Types> typename tuple_element< I, tuple<Types...> >::type const& get(const tuple<Types...>& tpl) noexcept;
and what I cannot understand is the return type, which means typename tuple_element< I, tuple<Types...> >::type const& ?
My interaction is that it returns a const reference to the generic type tuple_element::type , but I think tuple_element::type looks below
Class A{ public: int B; } A::B = .........;
but why can it be used as a type? I canβt understand this.
source share