1
0
forked from Alepha/Alepha

Type List concatenation for type-lisp.

This commit is contained in:
2024-01-27 05:12:07 -05:00
parent 9c9ed65312
commit 9224e98616

View File

@ -126,6 +126,21 @@ namespace Alepha::Hydrogen ::detail:: type_lisp_m
{ {
using type= TypeList< Members... >; using type= TypeList< Members... >;
}; };
template< typename Left, typename Right >
struct list_cat;
namespace exports
{
template< typename Left, typename Right >
using list_cat_t= typename list_cat< Left, Right >::type;
}
template< typename ... LeftArgs, typename ... RightArgs >
struct list_cat< TypeList< LeftArgs... >, TypeList< RightArgs... > >
{
using type= TypeList< LeftArgs..., RightArgs... >;
};
} }
namespace Alepha::Hydrogen::inline exports::inline type_lisp_m namespace Alepha::Hydrogen::inline exports::inline type_lisp_m