draconisplusplus/include/rfl/internal/wrap_in_rfl_array_t.hpp
2024-05-31 22:59:00 -04:00

29 lines
481 B
C++

#ifndef RFL_INTERNAL_WRAP_IN_RFL_ARRAY_T_
#define RFL_INTERNAL_WRAP_IN_RFL_ARRAY_T_
#include <type_traits>
#include "Array.hpp"
namespace rfl {
namespace internal {
template <class T>
struct wrap_in_rfl_array {
using type = T;
};
template <class T>
requires std::is_array_v<T>
struct wrap_in_rfl_array<T> {
using type = Array<T>;
};
template <class T>
using wrap_in_rfl_array_t = typename wrap_in_rfl_array<T>::type;
} // namespace internal
} // namespace rfl
#endif