2024-05-31 22:59:00 -04:00
|
|
|
#ifndef RFL_TO_VIEW_HPP_
|
|
|
|
#define RFL_TO_VIEW_HPP_
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
#include <tuple>
|
|
|
|
#include <type_traits>
|
|
|
|
|
|
|
|
#include "internal/to_ptr_named_tuple.hpp"
|
|
|
|
|
|
|
|
namespace rfl {
|
|
|
|
|
2024-06-08 14:10:59 -04:00
|
|
|
template <class T>
|
|
|
|
auto to_view(T& _t) {
|
|
|
|
return internal::to_ptr_named_tuple(_t);
|
|
|
|
}
|
2024-05-31 22:59:00 -04:00
|
|
|
|
2024-06-08 14:10:59 -04:00
|
|
|
} // namespace rfl
|
2024-05-31 22:59:00 -04:00
|
|
|
|
|
|
|
#endif
|