repr 0.1
Reconstructable string representations and more
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages Concepts
to_reftuple.h
Go to the documentation of this file.
#pragma once
#include <memory>
#include <type_traits>
#include <utility>
namespace librepr::detail {
template <typename T>
requires(std::is_aggregate_v<std::remove_cvref_t<T>> && !std::is_array_v<std::remove_cvref_t<T>>)
auto to_reftuple(T&& object){
return visit_aggregate(make_reftuple, std::forward<T>(object));
}
}