Searched refs:either_impl (Results 1 - 1 of 1) sorted by relevance

/external/clang/test/SemaCXX/
H A Ddiscrim-union.cpp17 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;

Completed in 70 milliseconds