#ifndef RFL_INTERNAL_HASREFLECTIONMETHODV_HPP_ #define RFL_INTERNAL_HASREFLECTIONMETHODV_HPP_ #include namespace rfl { template struct Reflector; namespace internal { template using reflection_method_t = decltype(std::declval().reflection()); template > struct has_refl_m : std::false_type {}; template struct has_refl_m>> : std::true_type {}; /// Utility parameter for named tuple parsing, can be used by the /// parsers to determine whether a class or struct has a method /// called "reflection". template constexpr bool has_reflection_method_v = has_refl_m::value; template concept has_reflector = requires(Type&& item) { Reflector::from(item); } && requires(const typename Reflector::ReflType& item) { Reflector::to(item); }; } // namespace internal } // namespace rfl #endif