Added XML support; #21

This commit is contained in:
Patrick Urbanke
2023-12-20 21:07:36 +01:00
parent 2281849dde
commit c5347eee28
124 changed files with 4652 additions and 1437 deletions
+34
View File
@@ -0,0 +1,34 @@
#ifndef RFL_INTERNAL_ISATTRIBUTE_HPP_
#define RFL_INTERNAL_ISATTRIBUTE_HPP_
#include <tuple>
#include <type_traits>
#include <utility>
#include "rfl/Field.hpp"
namespace rfl {
namespace internal {
template <class T>
class is_attribute;
template <class T>
class is_attribute : public std::false_type {};
template <class Type>
class is_attribute<Attribute<Type>> : public std::true_type {};
template <class Type>
class is_attribute<Attribute<Type>*> : public std::true_type {};
template <class Type>
class is_attribute<const Attribute<Type>*> : public std::true_type {};
template <class T>
constexpr bool is_attribute_v = is_attribute<T>::value;
} // namespace internal
} // namespace rfl
#endif