draconisplusplus/include/rfl/to_view.hpp
2024-06-08 14:10:59 -04:00

20 lines
295 B
C++

#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 {
template <class T>
auto to_view(T& _t) {
return internal::to_ptr_named_tuple(_t);
}
} // namespace rfl
#endif