Home | Sort by relevance Sort by last modified time |
/external/clang/test/SemaCXX/ | |
discrim-union.cpp | 17 template<typename...T> union either_impl; 19 template<> union either_impl<> { union in namespace:detail 24 template<typename T, typename...Ts> union either_impl<T, Ts...> { union in namespace:detail 27 either_impl<Ts...> rest; 28 typedef either_impl<Ts...> rest_t; 31 constexpr either_impl(select<0>, T &&t) : val(move(t)) {} function in union:detail::either_impl 34 constexpr either_impl(select<N>, U &&u) : rest(select<N-1>(), move(u)) {} function in union:detail::either_impl 69 detail::either_impl<T...> impl; |