1
0
forked from Alepha/Alepha

Helper to get the type of an aggregate decomposition.

This commit is contained in:
2023-10-28 10:46:56 -04:00
parent 2bd71cdfcf
commit 3a3e709236

View File

@ -6,6 +6,8 @@ static_assert( __cplusplus > 2020'00 );
#include <boost/preprocessor.hpp>
#include <Alepha/meta.h>
#include <Alepha/Reflection/detail/config.h>
#include <Alepha/Reflection/aggregate_members.h>
@ -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 & >() ) ) > >;
}
}