Browse Source

meta: cleanup

Michele Caini 5 years ago
parent
commit
1b509c56fe
1 changed files with 11 additions and 12 deletions
  1. 11 12
      src/entt/meta/resolve.hpp

+ 11 - 12
src/entt/meta/resolve.hpp

@@ -20,6 +20,17 @@ inline meta_type resolve() ENTT_NOEXCEPT {
 }
 
 
+/**
+ * @brief Iterates all the reflected types.
+ * @tparam Op Type of the function object to invoke.
+ * @param op A valid function object.
+ */
+template<typename Op>
+void resolve(Op op) {
+    internal::visit<meta_type>(op, *internal::meta_context::global);
+}
+
+
 /**
  * @brief Returns the first meta type that satisfies specific criteria, if any.
  * @tparam Func Type of the unary predicate to use to test the meta types.
@@ -54,18 +65,6 @@ inline meta_type resolve_type(const id_type id) ENTT_NOEXCEPT {
 }
 
 
-/**
- * @brief Iterates all the reflected types.
- * @tparam Op Type of the function object to invoke.
- * @param op A valid function object.
- */
-template<typename Op>
-inline std::enable_if_t<std::is_invocable_v<Op, meta_type>, void>
-resolve(Op op) {
-    internal::visit<meta_type>(op, *internal::meta_context::global);
-}
-
-
 }