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