Optimizationg for the reader and writer; #68

This commit is contained in:
Patrick Urbanke
2024-03-16 09:58:26 +01:00
parent 54785ec893
commit 58d89e717c
27 changed files with 738 additions and 556 deletions
+27
View File
@@ -0,0 +1,27 @@
#ifndef RFL_INTERNAL_ISARRAY_HPP_
#define RFL_INTERNAL_ISARRAY_HPP_
#include <tuple>
#include <type_traits>
#include <utility>
#include "Array.hpp"
namespace rfl::internal {
template <class T>
class is_array;
template <class T>
class is_array : public std::false_type {};
template <class Type>
class is_array<Array<Type>> : public std::true_type {};
template <class T>
constexpr bool is_array_v =
is_array<std::remove_cvref_t<std::remove_pointer_t<T>>>::value;
} // namespace rfl::internal
#endif