fork download
  1.  
  2. template<typename T, typename... Ts>
  3. struct is_complete{
  4. template<unsigned...> void foo();
  5. template<typename... Us>
  6. static auto test(int) -> decltype(foo<sizeof(Us)...>(), true_type{});
  7. template<typename...>
  8. static auto test(...) -> false_type;
  9.  
  10. constexpr operator bool() { return decltype(test<T, Ts...>(0))(); }
  11. };
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty