|
@@ -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.
|