From 3a3e709236c13300f09cf7e5409bef30353da4d6 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Sat, 28 Oct 2023 10:46:56 -0400 Subject: [PATCH] Helper to get the type of an aggregate decomposition. --- Reflection/tuplizeAggregate.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Reflection/tuplizeAggregate.h b/Reflection/tuplizeAggregate.h index e631743..f959801 100644 --- a/Reflection/tuplizeAggregate.h +++ b/Reflection/tuplizeAggregate.h @@ -6,6 +6,8 @@ static_assert( __cplusplus > 2020'00 ); #include +#include + #include #include @@ -192,6 +194,9 @@ namespace Alepha::Hydrogen::Reflection { return tuplizeAggregate< compute_salient_members_count_v< std::decay_t< Aggregate > > >( std::forward< Aggregate >( agg ) ); } + + template< typename Aggregate > + using aggregate_tuple_t= decay_tuple_t< std::decay_t< decltype( tuplizeAggregate( std::declval< const Aggregate & >() ) ) > >; } }