#ifndef RFL_PARSING_SUPPORTSATTRIBUTES_HPP_ #define RFL_PARSING_SUPPORTSATTRIBUTES_HPP_ #include #include #include #include "../Result.hpp" namespace rfl { namespace parsing { /// Determines whether a writer supports attributes. template concept supports_attributes = requires( W w, std::string_view name, typename W::OutputObjectType obj, bool is_attribute ) { { w.add_value_to_object(name, name, &obj, is_attribute) } -> std::same_as; { w.add_null_to_object(name, &obj, is_attribute) } -> std::same_as; }; } // namespace parsing } // namespace rfl #endif