Skip to content

Commit

Permalink
type traits: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Dec 29, 2024
1 parent eccac01 commit 7262858
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions src/entt/core/tuple.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,20 @@

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
* tuple, false otherwise.
* @tparam Type The type to test.
*/
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.
Expand Down

0 comments on commit 7262858

Please sign in to comment.