Sfoglia il codice sorgente

type traits: cleanup

Michele Caini 1 anno fa
parent
commit
7262858a76
1 ha cambiato i file con 8 aggiunte e 13 eliminazioni
  1. 8 13
      src/entt/core/tuple.hpp

+ 8 - 13
src/entt/core/tuple.hpp

@@ -7,25 +7,20 @@
 
 
 namespace entt {
 namespace entt {
 
 
-/*! @cond TURN_OFF_DOXYGEN */
-namespace internal {
-
-template<typename>
-struct is_tuple_impl: std::false_type {};
-
-template<typename... Args>
-struct is_tuple_impl<std::tuple<Args...>>: std::true_type {};
-
-} // namespace internal
-/*! @endcond */
-
 /**
 /**
  * @brief Provides the member constant `value` to true if a given type is a
  * @brief Provides the member constant `value` to true if a given type is a
  * tuple, false otherwise.
  * tuple, false otherwise.
  * @tparam Type The type to test.
  * @tparam Type The type to test.
  */
  */
 template<typename Type>
 template<typename Type>
-struct is_tuple: internal::is_tuple_impl<std::remove_cv_t<Type>> {};
+struct is_tuple: std::false_type {};
+
+/**
+ * @copybrief is_tuple
+ * @tparam Args Tuple template arguments.
+ */
+template<typename... Args>
+struct is_tuple<std::tuple<Args...>>: std::true_type {};
 
 
 /**
 /**
  * @brief Helper variable template.
  * @brief Helper variable template.